crazy365966834 / flutter_cupertino_localizations

MIT License
7 stars 18 forks source link

flutter_cupertino_localizations

The author is too busy to maintain 作者太忙停止维护了

provider localization for cupertino. just en and zh, because others is not finished yet. and there is no plan to do it, because I can't those languages.

You can use it to fixed the error: The getter 'pasteButtonLabel' was called on null. if you wan't use DefaultCupertinoLocalizations.

CupertinoLocalizations 居然只提供英文的 DefaultCupertinoLocalizations,真特么的想说脏话。

Usage

MaterialApp(
  locale: Locale('zh', 'CH'),
  localizationsDelegates: [
    GlobalCupertinoLocalizations.delegate,
    GlobalMaterialLocalizations.delegate,
    GlobalWidgetsLocalizations.delegate,
  ],
  supportedLocales: [
    const Locale('zh', 'CH'),
    const Locale('en', 'US'),
  ],
 ...
}

Getting Started

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.