locale_observer 1.0.0+2 copy "locale_observer: ^1.0.0+2" to clipboard
locale_observer: ^1.0.0+2 copied to clipboard

Utility for detecting when the system tells the app that the user's locale has changed.

locale_observer #

pub package

Utility for detecting when the system tells the app that the user's locale has.

Getting Started #

Should be above MaterialApp or CupertinoApp in the widget tree If you want to observe changes as soon as the app open and to continue to do so as log as the app is alive.

LocaleObserver(
  didChangeLocales: (BuildContext context, List<Locale> locales) {
    print("locales = $locales");
  },
  child: MaterialApp(
    home: HomePage(),
  ),
);
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Utility for detecting when the system tells the app that the user's locale has changed.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on locale_observer