-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assess flutter_gallery use_build_context_synchronously
breakages
#58867
assess flutter_gallery use_build_context_synchronously
breakages
#58867
Comments
(Marking |
The problem also exists for contexts of StatelessWidgets, though. One workaround is to turn the StatelessWidget into a StatefulWidget so you get access to the |
flutter/flutter#111539 fixes the issue. |
Thanks @a14n! |
Looks like we've still got a failure:
|
flutter/gallery#782 fixes this new issue. |
Thanks for the quick fix! |
A recent fix to
use_build_context_synchronously
(#3679) is flagging a few places influtter_gallery
that need addressing before we can publish a new linter.https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket/8803460924190469121/+/u/analyze_flutter_flutter/stdout
Naively I added some
mounted
checks but these won't work since the widgets are stateless and don't have a mounted property accessor (flutter/flutter#111321). We could make these diagnostics go away by limiting the lint to only check accesses fromStatefulWidget
s (indeed the lint docs suggest this) but there's also something fishy going on in the newly flagged calls... I'd love another set of eyes and 2 cents.Thanks in advance!
/cc @a14n @goderbauer @jacob314
/fyi @raapperez
The text was updated successfully, but these errors were encountered: