-
Notifications
You must be signed in to change notification settings - Fork 22
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
type 'DefaultWidgetsLocalizations' is not a subtype of type 'I18n' #20
Labels
bug
Something isn't working
Comments
I made a demo project showing you how to reproduce this error. It includes this code:
|
Hi, back from vacation. Will have a look. |
Yes, I have the same error, did you find a solution? |
I think it happens when we forget to add |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometimes I get this error. The only way to work around the issue is by passing the context of the main screen of the app. This results in a very complex codebase. If I change
I18n.of(context).text
toMaterialLocalizations.of(context).cancelButtonLabel
, it works just fine. What could be the reason for this and is there an easy way to fix it?The text was updated successfully, but these errors were encountered: