arabic_font 0.0.3+4 copy "arabic_font: ^0.0.3+4" to clipboard
arabic_font: ^0.0.3+4 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

pub package


# 👨‍💻 Developed by: #

profile

Nasr Al-Rahbi @abom_me

👨🏻‍💻 Find me in : #

Twitter Instagram LinkedIn Stack Overflow



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: #

changing fonts with arabic_font and hot reload

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 Parameters 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 Parameters
    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: #

/// Fonts Class
class ArabicFont {
  ArabicFont._();
/// Here 22 Different fonts
  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';
}

👨🏻‍💻 Follow me : #

Twitter Instagram LinkedIn Stack Overflow

10
likes
0
pub points
85%
popularity

Publisher

verified publisherabom.me

Flutter package allows you to add arabic fonts in your flutter projects

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on arabic_font