native_locale 0.0.2 copy "native_locale: ^0.0.2" to clipboard
native_locale: ^0.0.2 copied to clipboard

PlatformAndroid

A flutter plugin for getting and changing the native platform locale.

native locale #

A flutter plugin for getting and changing the native platform locale.

Platform Support

Android iOS
[ ]

Getting Started #

Add this to your package's pubspec.yaml file:

dependencies:
  native_locale:

Now in your Dart code, you can use:

import 'package:native_locale/native_locale.dart';

Usage #

To get the locale of the platform simply run the following command:

await NativeLocale().getNativeLocale()

To set the locale of the platform run the following command:

await NativeLocale().setNativeLocale(const Locale('en'))
5
likes
150
pub points
38%
popularity

Publisher

verified publisheramrahmd.com

A flutter plugin for getting and changing the native platform locale.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on native_locale