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 pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|1.1.7||Dec 15, 2018|
|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 May 8, 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.
Document public APIs. (-1 points)
21 out of 21 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.
flutter format to format
Homepage URL isn't helpful. (-10 points)
homepage field from
pubspec.yaml: link to a website about the package or use the source repository URL.
README.md. (-2 points)
1 image link is insecure (e.g.
https URLs instead.
Maintain an example.
None of the files in the package's
example/ directory matches known example patterns.
Common filename patterns include
google_fonts_arabic.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.