Skip to content

v1.1.0

Compare
Choose a tag to compare
@Daniel-Ioannou Daniel-Ioannou released this 19 Sep 12:49
· 353 commits to master since this release
5400d90

In this version:

Implement localization.

Add the CountryLocalizations.delegate in the list of your app delegates.

MaterialApp(
      supportedLocales: [
        const Locale('en'),
        const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans'), // Generic Simplified Chinese 'zh_Hans'
        const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant'), // Generic traditional Chinese 'zh_Hant'
      ],
      localizationsDelegates: [
        CountryLocalizations.delegate,
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
      ],
      home: HomePage(),
 );

Supported languages:

  • English
  • Simplified Chinese
  • Traditional Chinese