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:
if you wan't use ```DefaultCupertinoLocalizations```.
MaterialApp( locale: Locale('zh', 'CH'), localizationsDelegates: [ GlobalCupertinoLocalizations.delegate, GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, ], supportedLocales: [ const Locale('zh', 'CH'), const Locale('en', 'US'), ], ... }
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.
修改 datePicker 输出内容，增加“年月日”后缀
Add this to your package's pubspec.yaml file:
dependencies: flutter_cupertino_localizations: ^1.0.1
You can install packages from the command line:
$ flutter packages get
Alternatively, your editor might support
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|1.0.1||Jan 2, 2019|
|1.0.0||Dec 27, 2018|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on May 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
lib/src/cupertino_localizations.dart. (-43.75 points)
lib/src/cupertino_localizations.dart failed with 2 errors:
line 127 col 38: Undefined name 'kSupportedLanguages'.
line 149 col 65: Undefined name 'kSupportedLanguages'.
flutter format to format
The package description is too short. (-20 points)
Add more detail to the
description field of
pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
flutter_cupertino_localizations.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.