locale_settings 1.0.0 copy "locale_settings: ^1.0.0" to clipboard
locale_settings: ^1.0.0 copied to clipboard

A plugin which supports to change the current language on an os level.

locale_settings #

pub package


A plugin which supports to change the current language on an os level.

Getting Started #

Import the package:

import 'package:locale_settings/locale_settings.dart';

Usage #

Create a variable for the plugin:

final localeSettingsPlugin = const LocaleSettings();

Set the current locale:

await localeSettingsPlugin.setCurrentLocale(...);

Get the current locale:

final locale = await localeSettingsPlugin.getCurrentLocale();

Listen for changes regarding the current locale:

LocaleListener(
  builder: (final context, final locale) {
    ...
  },
)

Supported systems #

Supports Android, iOS and macOS out of the box. To also support Windows, Linux and Web use either locale_settings_hive or locale_settings_preferences

1
likes
140
points
43
downloads

Publisher

verified publisheropdehipt.com

Weekly Downloads

A plugin which supports to change the current language on an os level.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on locale_settings