From b750debeec231c7f523a274b6709480ff182b811 Mon Sep 17 00:00:00 2001 From: vnniz Date: Fri, 25 Aug 2023 15:39:57 +0700 Subject: [PATCH] Change default value of `syncWithDevice` to `true` --- lib/src/language_helper.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/language_helper.dart b/lib/src/language_helper.dart index c5c3e5e..507a2fb 100644 --- a/lib/src/language_helper.dart +++ b/lib/src/language_helper.dart @@ -78,7 +78,7 @@ class LanguageHelper { bool _isAutoSave = false; /// Sync with the device language - bool _syncWithDevice = false; + bool _syncWithDevice = true; /// Force rebuilds all widgets instead of only root widget. You can try to use /// this value if the widgets don't rebuild as your wish. @@ -165,7 +165,7 @@ class LanguageHelper { /// Apply the device language when it's changed. /// If this value is `true`, update the app language when the device language changes. /// Otherwise, keep the current app language even if the device language changes. - bool syncWithDevice = false, + bool syncWithDevice = true, /// Callback on language changed. void Function(LanguageCodes code)? onChanged,