persian_fonts
1.0.6, released 2 years ago by mahdyar.me
Provides Persian fonts like Vazir, Samim, Shabnam, Sahel, and B‑Yekan as ready‑to‑use TextStyles.
WASM-ready
What it does
The package bundles several free Persian fonts and exposes them as TextStyle constants. It also offers helper textTheme extensions to apply a font across the app.
AI-written summary of version 1.0.6, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need Persian language support with ready‑made fonts
- You want a quick way to apply a consistent Persian font throughout a Flutter app
Skip it when
- You require custom or additional Persian fonts not included in the package
- You need runtime font loading or advanced typography features
Strengths
- Easy integration via simple constants
- Supports multiple popular Persian fonts
- Null‑safe and Flutter‑compatible
Weaknesses
- Limited to the fonts shipped with the package
- No support for adding custom fonts through the package
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:persian_fonts/persian_fonts.dart';
Text(
'These are persian fonts.',
style: PersianFonts.Samim,
);Alternatives
Packages that do the same job and could replace persian_fonts.
- system_fonts
Load system fonts (ttf/otf) on Windows, macOS, Linux for Flutter apps
44Compare