flutter_kurdish_localization 0.0.1 copy "flutter_kurdish_localization: ^0.0.1" to clipboard
flutter_kurdish_localization: ^0.0.1 copied to clipboard

outdated

A new flutter plugin project.

example/lib/main.dart

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

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

const List<Locale> supportedLocales = [
  Locale('ckb'),
  Locale('ar'),
  Locale('en')
];

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'CKB Example',
      localizationsDelegates: const [
        KurdishWidgetLocalizations.delegate,
        KurdishMaterialLocalizations.delegate
      ],
      locale: supportedLocales[0],
      supportedLocales: supportedLocales,
      home: Scaffold(
        appBar: AppBar(
          title: const Text('CKB Example'),
        ),
        body: const Center(
          child: Text('بخير بي كاكا'),
        ),
      ),
    );
  }
}