flutter_l10n 0.1.0 flutter_l10n: ^0.1.0 copied to clipboard
Flutter localazitions.
flutter_l10n #
Flutter localizations.
Getting Started #
Install #
dev_dependencies:
...
flutter_l10n: '^0.1.0'
Usage #
-
Generate
S.dart
file from*.arb
files.
flutter pub run flutter_l10n:build
. -
Register in
MaterialApp
/WidgetsApp
:
MaterialApp(
localizationsDelegates: [
S.delegate,
],
);
- Reference strings by
S.of(context).***
.