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

example/lib/main.dart

import 'package:arabic_font/arabic_font.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        fontFamily:
            ArabicThemeData.font(arabicFont: ArabicFont.dinNextLTArabic),
        package: ArabicThemeData.package,
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('خط عربي'),
      ),
      body: const Center(
        child: Text(
          'تجربة الخط',
          style: ArabicTextStyle(
              arabicFont: ArabicFont.dinNextLTArabic, fontSize: 25),
        ),
      ),
    );
  }
}
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