google_fonts_arabic 1.1.7

  • Readme
  • Changelog
  • Example
  • Installing
  • 77

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/lib/main.dart

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 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';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
80
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
37
Overall:
Weighted score of the above. [more]
77
Learn more about scoring.

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

  • Dart: 2.7.1
  • pana: 0.13.7
  • Flutter: 1.12.13+hotfix.9

Health suggestions

Format lib/fonts.dart.

Run flutter format to format lib/fonts.dart.

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

exitCode: 255 stdout: parsing /tmp/pub-dartlang-dartdocUPRDDK/pkg/lib/fonts.dart... parsing /tmp/pub-dartlang-dartdocUPRDDK/pkg/lib/google_fonts_arabic.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/collection/collection.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/developer/developer.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/internal/internal.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/_interceptors/interceptors.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/io/io.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/isolate/isolate.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/convert/convert.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/async/async.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/typed_data/typed_data.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/_empty.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/js_util/js_util_dart2js.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/html/html_dart2js.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/math/math.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/core/core.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/_http/http.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/ui/ui.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/js/js_dart2js.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/ffi/ffi.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/wasm/wasm.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/_interceptors/js_array.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/_interceptors/js_number.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/_interceptors/js_string.dart... Initialized dartdoc with 21 libraries in 28.5 seconds documenting google_fonts_arabic Generating docs for library google_fonts_arabic from package:google_fonts_arabic/fonts.dart... Generating docs for library google_fonts_arabic from package:google_fonts_arabic/google_fonts_arabic.dart... Validating docs... Documented 2 public libraries in 1.0 seconds stderr: Documenting google_fonts_arabic... warning: google_fonts_arabic has no library level documentation comments, from google_fonts_arabic: (file:///tmp/pub-dartlang-dartdocUPRDDK/pkg/lib/fonts.dart:1:9) warning: no canonical library found for google_fonts_arabic.ArabicFonts.hashCode, not linking, from google_fonts_arabic.ArabicFonts.hashCode: (file:///flutter/bin/cache/pkg/sky_engine/lib/core/object.dart:94:20) warning: no canonical library found for google_fonts_arabic.ArabicFonts.runtimeType, not linking, from google_fonts_arabic.ArabicFonts.runtimeType: (file:///flutter/bin/cache/pkg/sky_engine/lib/core/object.dart:116:21) warning: no canonical library found for google_fonts_arabic.ArabicFonts.noSuchMethod, not linking, from google_fonts_arabic.ArabicFonts.noSuchMethod: (file:///flutter/bin/cache/pkg/sky_engine/lib/core/object.dart:111:20) warning: no canonical library found for google_fonts_arabic.ArabicFonts.toString, not linking, from google_fonts_arabic.ArabicFonts.toString: (file:///flutter/bin/cache/pkg/sky_engine/lib/core/object.dart:99:19) warning: no canonical library found for google_fonts_arabic.ArabicFonts.==, not linking, from google_fonts_arabic.ArabicFonts.==: (file:///flutter/bin/cache/pkg/sky_engine/lib/core/object.dart:62:26) warning: google_fonts_arabic has no library level documentation comments, from google_fonts_arabic: (file:///tmp/pub-dartlang-dartdocUPRDDK/pkg/lib/google_fonts_arabic.dart:1:9) error: failed to write file at: google_fonts_arabic/google_fonts_arabic-library.html for symbol google_fonts_arabic: (file:///tmp/pub-dartlang-dartdocUPRDDK/pkg/lib/google_fonts_arabic.dart:1:9) conflicting with file already generated by google_fonts_arabic: (file:///tmp/pub-dartlang-dartdocUPRDDK/pkg/lib/fonts.dart:1:9) Dartdoc generates a path and filename to write to for each symbol. google_fonts_arabic conflicts with another symbol in the generated path, and therefore can not be written out. Changing the name, library name, or class name (if appropriate) of one of the conflicting items can resolve the conflict. Alternatively, use the @nodoc tag in one symbol's documentation comments to hide it. warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts-class.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Amiri-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Aref_Ruqaa-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Baloo_Bhaijaan-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Cairo-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Changa-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/El_Messiri-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Harmattan-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Jomhuria-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Katibeh-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Lalezar-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Lateef-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Lemonada-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Mada-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Markazi_Text-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Mirza-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Rakkas-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Reem_Kufi-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Scheherazade-constant.html (from index.json) warning: dartdoc generated a broken link to: google_fonts_arabic/ArabicFonts/Tajawal-constant.html (from index.json) found 27 warnings and 1 error Unhandled exception: dartdoc encountered 1 errors while processing. #0 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:202:7)

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

At the time of the analysis the homepage field https://emad.medher.info was unreachable.

Package is getting outdated. (-31.23 points)

The package was last published 68 weeks ago.

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