google_fonts_arabic 1.1.7

  • Readme
  • Changelog
  • Example
  • Installing
  • 84

google_fonts_arabic #

Arabic fonts by google right into your flutter application. Courtsey of

Getting Started #

Until this package get listed on dartlang, add the package to your project as follows:

      git: git://
      version: ^0.0.5

Import the list of fonts like this:

import 'package:google_fonts_arabic/fonts.dart';

Then you can view the available fonts like this through the ArabicFonts clas:

alt text

In your text widgets, use it like this:

      "كيف حالك يا أخ العرب؟",
      style: new TextStyle(
        fontFamily: ArabicFonts.Cairo,
        package: 'google_fonts_arabic',
        fontSize: 25.0,

Enjoy ^_^

[0.0.1] - TODO: add fonts styles to be used as styles.

  • TODO: Arabic fonts from Google Fonts.


google_fonts_arabic_example #

Demonstrates how to use the google_fonts_arabic plugin.

Usage #

import 'package:flutter/material.dart';
import 'package:google_fonts_arabic/fonts.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  Widget build(BuildContext context) {
    return MaterialApp(
      home: MyHomePage(title: 'google_fonts_arabic_example'),

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;
  _MyHomePageState createState() => _MyHomePageState();

class _MyHomePageState extends State<MyHomePage> {
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      body: Center(
        child: Column(
          children: <Widget>[
              "كيف حالك يا أخ العرب؟",
              style: new TextStyle(
                fontFamily: ArabicFonts.Cairo,
                package: 'google_fonts_arabic',
                fontSize: 25.0,

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  google_fonts_arabic: ^1.1.7

2. Install it

You can install packages from the command line:

with Flutter:

$ 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:

import 'package:google_fonts_arabic/google_fonts_arabic.dart';
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]
Learn more about scoring.

We analyzed this package on Jan 21, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

Health issues and suggestions

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.

Format lib/fonts.dart.

Run flutter format to format lib/fonts.dart.

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field was unreachable.

Package is getting outdated. (-10.14 points)

The package was last published 57 weeks ago.

Update (-2 points)

1 image link is insecure (e.g., use https URLs instead.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies