persian_fonts 1.0.5 copy "persian_fonts: ^1.0.5" to clipboard
persian_fonts: ^1.0.5 copied to clipboard

A Flutter package for using free persian fonts. It supports Vazir, Samim, Shabnam and Sahel fonts.

persian_fonts #

A Flutter package for using free persian fonts.

The persian_fonts package for Flutter allows you to easily use any free persian fonts in your app.

Getting Started #

persian_fonts_flutter

Currently, PersianFonts supports 4 types of fonts: Vazir, Samim, Shabnam and Sahel. yours isn't hrere? add it!

First, add the persian_fonts package to your pubsec dependencies.

To import PersianFonts:

import 'package:persian_fonts/persian_fonts.dart';

To use PersianFonts as the default TextStyle:

Text(
  'These are persian fonts.',
  style: PersianFonts.Samim,
),

To use PersianFonts with a customized TextStyle:

Text(
  'These are persian fonts.',
  style: PersianFonts.Samim.copyWith(
    ...
    ),
),

You can also use PersianFonts to make or modify an entire text theme to use one of the supported fonts:

MaterialApp(
  theme: ThemeData(
    textTheme: PersianFonts.vazirTextTheme,
  ),
);
37
likes
120
pub points
79%
popularity

Publisher

verified publishermahdyar.me

A Flutter package for using free persian fonts. It supports Vazir, Samim, Shabnam and Sahel fonts.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on persian_fonts