Closed FilipeOS closed 5 years ago
@FilipeOS
1) Do you see a lib/generated/i18n.dart
file in your source tree?
2) Did you import this file in main.dart
?
Hi @noordawod ,
If you don't see the lib/generated/i18n.dart
file, it means the plugin isn't installed properly... Try to remove and reinstall it, and send a screenshot of the Plugin screen after restarting the IDE showing the state of the plugin installation.
@noordawod Invalidate Cache and Restart worked like always.
Now GlobalMaterialLocalizations.delegate,
and GlobalWidgetsLocalizations.delegate,
is not definied
title: _appTitle,
debugShowCheckedModeBanner: false,
localizationsDelegates: [
S.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
],
supportedLocales: S.delegate.supportedLocales,
localeResolutionCallback:
S.delegate.resolution(fallback: const Locale('en', '')),
That's unrelated to this plugin, but you should be able to import the relevant Flutter modules to expose those. Check the documentation.
Hi guys,
Sorry if I'm too noob for this.
So, I installed the plugin according this instructions and it worked (no errors), until I get packages on pubspec and restart Android Studio.
After that I tried the github instructions on the README section and still don't work...
When I place this on main.dart it says undefined name:
Am I missing something or instructions are unclear/missing details? Thank you!