r/flutterhelp • u/Ornery-Actuator2266 • Aug 20 '26
RESOLVED I need help with this simple code!
class MyPage extends StatelessWidget {
@/override
Widget build(BuildContext abcd) {
return Builder(
builder: (vontext) {
return Text("Hello");
},
);
}
}
In this class I have changed the wording of the parameter to abcd and vontext. My question is when flutter wants to find my context how will it do it since my parameters are named incorrectly. Wouldnt it cause problems. Is the parameters completely local scope?
2
Upvotes
View all comments
Show parent comment
1
u/Ornery-Actuator2266 Aug 20 '26
Thanks. Apparently flutter uses the element tree for the context which is a separate tree compared to the widget tree.