Skip to content

Commit b7e26a7

Browse files
committed
all tutorial will be turned off if user selects no
1 parent 1e9fec7 commit b7e26a7

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

lib/app/modules/home/views/home_page_body.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class HomePageBody extends StatelessWidget {
3636
},
3737
onNo: () async {
3838
await SaveTourStatus.saveTutorialPromptShown(true);
39-
await SaveTourStatus.saveInAppTourStatus(true);
39+
await SaveTourStatus.disableAllTutorials();
4040
if (dialogContext.mounted) {
4141
Navigator.of(dialogContext).pop();
4242
}

lib/app/utils/app_settings/save_tour_status.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,14 @@ class SaveTourStatus {
7070
static Future<bool> getTutorialPromptShown() async {
7171
return _preferences?.getBool('tutorial_prompt_shown') ?? false;
7272
}
73+
74+
static Future disableAllTutorials() async {
75+
await saveReportsTourStatus(true);
76+
await saveInAppTourStatus(true);
77+
await saveFilterTourStatus(true);
78+
await saveProfileTourStatus(true);
79+
await saveDetailsTourStatus(true);
80+
await saveManageTaskServerTourStatus(true);
81+
await saveTaskSwipeTutorialStatus(true);
82+
}
7383
}

0 commit comments

Comments
 (0)