You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My code broke after adding path library because I was using 'context' as BuildContext variable in my highest widget.
The text was updated successfully, but these errors were encountered:
nanobug
changed the title
global name 'context' may hit local widget BuildContext paramters
global name 'context' may hit local widget BuildContext parameters
Apr 25, 2019
The path library was designed to be imported with a prefix, though you don't have to if you don't want to:
import'package:path/path.dart'as p;
So it has some top-level identifiers that are pretty short names, with the understanding that you'll use a prefix to avoid collisions. If you prefer not to use a prefix, you can also do:
My code broke after adding path library because I was using 'context' as BuildContext variable in my highest widget.
The text was updated successfully, but these errors were encountered: