google_fonts_arabic 1.1.7

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 81

google_fonts_arabic #

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

Getting Started #

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:

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:

  Text(
      "كيف حالك يا أخ العرب؟",
      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.

example/README.md

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.
  @override
  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;
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              "كيف حالك يا أخ العرب؟",
              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:


dependencies:
  google_fonts_arabic: ^1.1.7

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages 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';
  
Version Uploaded Documentation Archive
1.1.7 Dec 15, 2018 Go to the documentation of google_fonts_arabic 1.1.7 Download google_fonts_arabic 1.1.7 archive
1.1.6 Dec 5, 2018 Go to the documentation of google_fonts_arabic 1.1.6 Download google_fonts_arabic 1.1.6 archive
1.1.4 Dec 5, 2018 Go to the documentation of google_fonts_arabic 1.1.4 Download google_fonts_arabic 1.1.4 archive
1.1.3 Dec 5, 2018 Go to the documentation of google_fonts_arabic 1.1.3 Download google_fonts_arabic 1.1.3 archive
1.1.2 Dec 5, 2018 Go to the documentation of google_fonts_arabic 1.1.2 Download google_fonts_arabic 1.1.2 archive
1.1.1 Dec 5, 2018 Go to the documentation of google_fonts_arabic 1.1.1 Download google_fonts_arabic 1.1.1 archive
1.1.0 Dec 5, 2018 Go to the documentation of google_fonts_arabic 1.1.0 Download google_fonts_arabic 1.1.0 archive
0.0.13 Dec 5, 2018 Go to the documentation of google_fonts_arabic 0.0.13 Download google_fonts_arabic 0.0.13 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
71
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
78
Overall:
Weighted score of the above. [more]
81
Learn more about scoring.

We analyzed this package on Apr 25, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.4.7

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

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 https://emad.medher.info was unreachable.

Update README.md. (-2 points)

1 image link is insecure (e.g. http://206.189.25.244/goole_arabic_fonts.png), use https URLs instead.

Dependencies

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
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test