arabic_font 0.0.3+2 arabic_font: ^0.0.3+2 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;
Parameters of the ArabicThemeApp: #
///### Use ArabicFont then select type of font
/// EX: ArabicFont.dubai
final String arabicFont;
static const String package='arabic_font';