dart run build_runner watch -d
One time: dart run slang apply
Watch mode: dart run slang watch
Analyze: dart run slang analyze --full
Using translate_var
does not rebuild widget when translation change. To make
sure all pages are rebuild when switching language use this in build
method:
final l10n = Translations.of(context);
or
context.l10n
See: https://pub.dev/packages/slang#-changing-locale
Add the supported locales to your Info.plist file.
In this example, we support English (en) and German (de).
File: ios/Runner/Info.plist
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>pl</string>
</array>
dart run flutter_native_splash:create
dart run flutter_native_splash:remove
dart run flutter_launcher_icons:main -f flutter_launcher_icons*