Skip to content

Commit

Permalink
Implemented developer mode just like android
Browse files Browse the repository at this point in the history
  • Loading branch information
iqfareez committed Jan 25, 2021
1 parent 29b75dc commit 3194ac5
Show file tree
Hide file tree
Showing 5 changed files with 309 additions and 276 deletions.
1 change: 1 addition & 0 deletions lib/CONSTANTS.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const kStoredNotificationLimit = "storedNotificationLimit";
const kNumberOfNotifsScheduled = "numnotifscheduled";
const kIsDebugMode = "debugModeSet";
const kForceUpdateNotif = "storedForceUpdateNotif";
const kDiscoveredDeveloperOption = "storedDevDiscovered";

//Network image
const kAppIconUrl =
Expand Down
3 changes: 3 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ void initGetStorage() {
GetStorage().writeIfNull(kStoredNotificationLimit, false);
GetStorage().writeIfNull(kIsDebugMode, false);
GetStorage().writeIfNull(kForceUpdateNotif, false);
GetStorage().writeIfNull(kDiscoveredDeveloperOption, false);
}

Future<void> _configureLocalTimeZone() async {
Expand All @@ -135,5 +136,7 @@ void readAllGetStorage() {
'kStoredNotificationLimit is ${GetStorage().read(kStoredNotificationLimit)}');
print('kIsDebugMode is ${GetStorage().read(kIsDebugMode)}');
print('kForceUpdateNotif is ${GetStorage().read(kForceUpdateNotif)}');
print(
'kDiscoveredDeveloperOption is ${GetStorage().read(kDiscoveredDeveloperOption)}');
print('-----------------------');
}
Loading

0 comments on commit 3194ac5

Please sign in to comment.