Arabic fonts by google right into your flutter application. Courtsey of fonts.google.com
Until this package get listed on dartlang, add the package to your project as follows:
google_fonts_arabic: git: git://github.com/emadomedher/google-fonts-arabic.git version: ^0.0.5
Import the list of fonts like this:
Then you can view the available fonts like this through the ArabicFonts clas:
In your text widgets, use it like this:
Text( "كيف حالك يا أخ العرب؟", style: new TextStyle( fontFamily: ArabicFonts.Cairo, package: 'google_fonts_arabic', fontSize: 25.0, ), ),
Add this to your package's pubspec.yaml file:
dependencies: google_fonts_arabic: ^1.1.6
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.1.6||Dec 5, 2018|
|1.1.4||Dec 5, 2018|
|1.1.3||Dec 5, 2018|
|1.1.2||Dec 5, 2018|
|1.1.1||Dec 5, 2018|
|1.1.0||Dec 5, 2018|
|0.0.13||Dec 5, 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 Dec 6, 2018, 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.
Document public APIs (-10 points)
21 out of 21 API elements (library, class, field or method) have no adequate dartdoc content. Good documentation improves code readability and discoverability through search.
Maintain an example.
None of the files in your
example/ directory matches a known example patterns. Common file name patterns include:
example.dart or you could also use
google_fonts_arabic.dart. Packages with multiple examples should use