flutter_ug 0.0.4 copy "flutter_ug: ^0.0.4" to clipboard
flutter_ug: ^0.0.4 copied to clipboard

Ug delegate for flutter_localizations

Features #

flutter_ug is a package that provides uyghur language support for flutter applications.

Getting started #

To use this package, add flutter_ug as a dependency in your pubspec.yaml file.

dependencies:
  flutter_ug: ^0.0.2

Usage #

import 'package:flutter_ug/flutter_ug.dart';

void main() {
  runApp(MaterialApp(
    localizationsDelegates: [
      GlobalMaterialLocalizations.delegate,
      GlobalCupertinoLocalizations.delegate,
      GlobalWidgetsLocalizations.delegate,
      UgLocalizations.delegate,
      UgLocalizations.cupertinoDelegate,
      UgLocalizations.widgetsDelegate
    ],
    supportedLocales: [
      const Locale('ug'),
    ],
    home: Scaffold(
      appBar: AppBar(
        title: "Hello World!"
      ),
      body: Center(
        CalendarDatePicker(
          initialDate: DateTime.now(),
          firstDate: DateTime(1900),
          lastDate: DateTime(2100),
          onDateChanged: (value) {},
        )
      ),
    ),
  ));
}
1
likes
60
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

Ug delegate for flutter_localizations

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_localizations, intl

More

Packages that depend on flutter_ug