Provider localization for cupertino. just en,ar and zh if you don't wont to use the default. You can use it to fixed the error: The getter 'pasteButtonLabel' was called on null.
MaterialApp( locale: Locale('ar', ''), localizationsDelegates: [ GlobalCupertinoLocalizations.delegate, GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, ], supportedLocales: [ const Locale('zh', 'CH'), const Locale('ar', ''), const Locale('en', 'US'), ], ... }
Feel free to send me a pull request to add your langage.
This library base on the work of crazy365966834 thank you.
- Fix Readme and exmaple main.dart
- Added the example.
- First Relase.
- Fix Readme
- Fix Error and update readme.
- Initial release
cupertino localizations example #
This is a flutter project to show you how you can use cupertion localization example to fix the issue with the selection and clipborad in IOS.
Getting Started #
- open the terminal.
- clone this project.
- cd to it
- connect your IOS device.
- change the language of your app and selected a text you will notice .
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: cupertino_localizations: ^1.0.0+1
2. Install it
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
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 Oct 21, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.5.1
- pana: 0.12.21
- Flutter: 1.9.1+hotfix.4
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
Maintenance issues and suggestions
Support latest dependencies. (-10 points)
The version constraint in
pubspec.yaml does not support the latest published versions for 1 dependency (
|Dart SDK||>=2.1.0 <3.0.0|