Skip to content

Commit be684ae

Browse files
committed
New hotfix for startup crash
1 parent 4f74031 commit be684ae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/model/controllers.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class LocaleController extends GetxController {
190190
Rx<bool> usingSystemLocale = true.obs;
191191

192192
void loadLocaleSettings() {
193-
final bool isUsingSystemLocale = _box.read(_localeModeKey);
193+
final bool isUsingSystemLocale = _box.read(_localeModeKey) ?? true;
194194
usingSystemLocale.value = isUsingSystemLocale;
195195

196196
List<String> loadedLocaleInfo =

lib/view/settings_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class SettingsPage extends StatelessWidget {
128128
contentPadding: const EdgeInsets.all(20.0),
129129
title: AppLocalizations.of(context)!.settingsPageAboutTitle,
130130
middleText: AppLocalizations.of(context)!
131-
.settingsPageAboutContent("1.0.1"),
131+
.settingsPageAboutContent("1.0.2"),
132132
textConfirm:
133133
AppLocalizations.of(context)!.settingsPageAboutConfirm,
134134
confirm: OutlinedButton.icon(

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1717
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1818
# In Windows, build-name is used as the major, minor, and patch parts
1919
# of the product and file versions while build-number is used as the build suffix.
20-
version: 1.0.1+3
20+
version: 1.0.2+4
2121

2222
environment:
2323
sdk: '>=2.18.4 <3.0.0'

0 commit comments

Comments
 (0)