flutter_device_locale

Last updated:

0 purchases

flutter_device_locale Image
flutter_device_locale Images
Add to Cart

Description:

flutter device locale

A Flutter plugin for retrieving the device locale information.
Installation #
Add this to your package's pubspec.yaml file:
dependencies:
flutter_device_locale: <latest version>
copied to clipboard
Install packages from the command line (or from your editor):
flutter pub get
copied to clipboard
Import flutter_device_locale:
import 'package:flutter_device_locale/flutter_device_locale.dart';
copied to clipboard
Usage #
Retrieve the current locale:
Locale locale = await DeviceLocale.getCurrentLocale();
copied to clipboard
Retrieve the preferred locales:
List<Locale> preferredLocales = await DeviceLocale.getPreferredLocales();
copied to clipboard
Issues #
Please file any issues, bugs or feature request here.
License #
This project is licensed under the MIT License
Author #
This Flutter plugin is developed by Florin Bratan. You can contact me at [email protected]

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.