arabic_font 0.0.3+3
arabic_font: ^0.0.3+3 copied to clipboard
Flutter package allows you to add arabic fonts in your flutter projects
arabic_font: #
A Flutter package allows you to add arabic fonts in your flutter projects
# 👨💻 Developed by: #

Nasr Al-Rahbi @abom_me
👨🏻💻 Find me in : #
Android | iOS | Flutter Web | |
---|---|---|---|
Support | Yes | Yes | Yes |
arabic_font using fonts from official google fonts.
arabic_font using fonts from official arb fonts.
Preview: #

Setup #
Pubspec changes:
dependencies:
map_location_picker: <last_version>
Getting Started: #
Sample example:
import 'package:arabic_font/arabic_font.dart';
const Text(
'تجربة الخط',
style: ArabicTextStyle(arabicFont: ArabicFont.dubai,fontSize:25),
);
- What You can Do:
- Change the font for specific text
- Change the font in the entire application
To Change the font for specific text: #
import 'package:arabic_font/arabic_font.dart';
Text(
'تجربة الخط',
/// Add ArabicTextStyle in style of text
style: ArabicTextStyle(
/// Select The type of font by useing ArabicFont
arabicFont: ArabicFont.dubai,
/// you can use any object of TextStyle
/// EX: fontSize:
fontSize:25
),
);
To Change the font in the entire application: #
import 'package:arabic_font/arabic_font.dart';
ThemeData(
///Add this Class in your ThemeData after fontFamily
fontFamily: ArabicThemeData.font(
/// Select The type of font
arabicFont: ArabicFont.dinNextLTArabic
),
///Add this Class in your ThemeData after package
package: ArabicThemeData.package,
),
Note: #
If The Font doesn't Change , just stop the project and run it again
Parameters of the ArabicTextStyle: #
///### Use ArabicFont then select type of font
/// EX: ArabicFont.dubai
final String arabicFont;
/// TextStyle Para
bool inherit = true,
Color? color,
Color? backgroundColor,
double? fontSize,
FontWeight? fontWeight,
FontStyle? fontStyle,
double? letterSpacing,
double? wordSpacing,
TextBaseline? textBaseline,
double? height,
TextLeadingDistribution? leadingDistribution,
Locale? locale,
Paint? foreground,
Paint? background,
List<Shadow>? shadows,
List<FontFeature>? fontFeatures,
List<FontVariation>? fontVariations,
TextDecoration? decoration,
Color? decorationColor,
TextDecorationStyle? decorationStyle,
double? decorationThickness,
String? debugLabel,
TextOverflow? overflow,
String? fontFamily,
String? package
Parameters of the ArabicThemeApp: #
///### Use ArabicFont then select type of font
/// EX: ArabicFont.dubai
final String arabicFont;
static const String package='arabic_font';
The Fonts: #
class ArabicFont {
ArabicFont._();
static const String amiri = 'Amiri';
static const String arefRuqaa = 'Aref_Ruqaa';
static const String aalooBhaijaan = 'Baloo_Bhaijaan';
static const String cairo = 'Cairo';
static const String changa = 'Changa';
static const String elMessiri = 'El_Messiri';
static const String narmattan = 'Harmattan';
static const String jomhuria = 'Jomhuria';
static const String katibeh = 'Katibeh';
static const String lalezar = 'Lalezar';
static const String lateef = 'Lateef';
static const String lemonada = 'Lemonada';
static const String mada = 'Mada';
static const String markaziText = 'Markazi_Text';
static const String mirza = 'Mirza';
static const String rakkas = 'Rakkas';
static const String reemKufi = 'Reem_Kufi';
static const String scheherazade = 'Scheherazade';
static const String tajawal = 'Tajawal';
static const String dubai = 'Dubai';
static const String dinNextLTArabic = 'DINNextLTArabic';
}