locale_observer 1.0.0+2

Flutter Android iOS

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
90
pub points
53%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

humazed@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on locale_observer