-
I want to do something when AppLocale change, for example: LocaleSettings.listen((locale) {
// do something here
}) |
Beta Was this translation helpful? Give feedback.
Answered by
Tienisto
Jul 27, 2024
Replies: 1 comment
-
Checkout the documentation: https://pub.dev/packages/slang#-locale-stream Copied from documentation: LocaleSettings.getLocaleStream().listen((event) {
print('locale changed: $event');
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yixiaojiu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checkout the documentation:
https://pub.dev/packages/slang#-locale-stream
Copied from documentation: