-
Notifications
You must be signed in to change notification settings - Fork 118
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
Flutter Drive not working with flutter_translate #53
Comments
Hi, thanks for reporting this issue but as far as I can see this is an issue with flutter_driver and not flutter_translate? |
Yes, this I flutter_driver issue, however it hasn't been resolved for years. So to use flutter_translate together with flutter_driver it's possible to add workaround to flutter_translate. |
@bratan , will you make this change sooner or later? I would prefer using your library from your repository rather than from fork. Or I can prepare PR if you want. |
We have the same issue when running widgets tests, this code will timeout -> |
Having same issue when running widget tests. Please, can you provide an example? Thank you |
@bratan , will you make the change? |
I have created PR with fix: #57 |
Problem: when you test your app with Flutter Drive - app will stay on White screen while trying to init the app.
To be more specific, this call is never executes:
final delegate = await LocalizationDelegate.create(fallbackLocale: 'en_US', supportedLocales: ['en_US']);
Root cause of the issue is inside locale_file_service.dart - Future getLocaleContent(String file) method.
This code hangs:
return rootBundle.loadString(file);
This code will work:
Underlying reason for that (if qurious to read) is here:
flutter/flutter#24703
The text was updated successfully, but these errors were encountered: