Skip to content

Commit

Permalink
Change default value of syncWithDevice to true
Browse files Browse the repository at this point in the history
  • Loading branch information
lamnhan066 committed Aug 25, 2023
1 parent d34a417 commit b750deb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/language_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b750deb

Please sign in to comment.