update all screens with pulldown to refresh as false & reload home on back

This commit is contained in:
2024-10-08 10:11:30 +02:00
parent db6d1a3a1f
commit 76d904d653
15 changed files with 50 additions and 0 deletions

View File

@@ -330,6 +330,8 @@ class _MIHAboutState extends State<MIHAbout> {
actionDrawer: null,
secondaryActionDrawer: null,
bottomNavBar: null,
pullDownToRefresh: false,
onPullDown: () async {},
);
}
}

View File

@@ -222,6 +222,10 @@ class _PatientAccessRequestState extends State<PatientAccessRequest> {
iconSize: 35,
onTap: () {
Navigator.of(context).pop();
Navigator.of(context).popAndPushNamed(
'/',
);
},
);
}
@@ -354,6 +358,8 @@ class _PatientAccessRequestState extends State<PatientAccessRequest> {
actionDrawer: null,
secondaryActionDrawer: null,
bottomNavBar: null,
pullDownToRefresh: false,
onPullDown: () async {},
);
// return Scaffold(
// // appBar: const MIHAppBar(

View File

@@ -359,6 +359,8 @@ class _ForgotPasswordState extends State<ForgotPassword> {
actionDrawer: null,
secondaryActionDrawer: null,
bottomNavBar: null,
pullDownToRefresh: false,
onPullDown: () async {},
);
}
}

View File

@@ -421,6 +421,8 @@ class _RegisterState extends State<Register> {
actionDrawer: null,
secondaryActionDrawer: null,
bottomNavBar: null,
pullDownToRefresh: false,
onPullDown: () async {},
);
}
}

View File

@@ -423,6 +423,8 @@ class _ResetPasswordState extends State<ResetPassword> {
actionDrawer: null,
secondaryActionDrawer: null,
bottomNavBar: null,
pullDownToRefresh: false,
onPullDown: () async {},
);
}
}

View File

@@ -588,6 +588,8 @@ class _SignInState extends State<SignIn> {
actionDrawer: null,
secondaryActionDrawer: null,
bottomNavBar: null,
pullDownToRefresh: false,
onPullDown: () async {},
);
}
}

View File

@@ -288,6 +288,10 @@ class _ManageBusinessProfileState extends State<ManageBusinessProfile> {
iconSize: 35,
onTap: () {
Navigator.of(context).pop();
Navigator.of(context).popAndPushNamed(
'/',
);
},
);
}
@@ -376,6 +380,8 @@ class _ManageBusinessProfileState extends State<ManageBusinessProfile> {
actionDrawer: null,
secondaryActionDrawer: null,
bottomNavBar: null,
pullDownToRefresh: false,
onPullDown: () async {},
);
// return Scaffold(
// // appBar: const MIHAppBar(

View File

@@ -441,6 +441,8 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
actionDrawer: null,
secondaryActionDrawer: null,
bottomNavBar: null,
pullDownToRefresh: false,
onPullDown: () async {},
);
// return Scaffold(

View File

@@ -232,6 +232,8 @@ class _MIHProfileGetterState extends State<MIHProfileGetter> {
actionDrawer: null,
secondaryActionDrawer: null,
bottomNavBar: null,
pullDownToRefresh: false,
onPullDown: () async {},
);
}
}

View File

@@ -290,6 +290,10 @@ class _ProfileUserUpdateState extends State<ProfileUserUpdate> {
iconSize: 35,
onTap: () {
Navigator.of(context).pop();
Navigator.of(context).popAndPushNamed(
'/',
);
},
);
}
@@ -443,6 +447,8 @@ class _ProfileUserUpdateState extends State<ProfileUserUpdate> {
actionDrawer: null,
secondaryActionDrawer: null,
bottomNavBar: null,
pullDownToRefresh: false,
onPullDown: () async {},
);
}
}

View File

@@ -296,6 +296,8 @@ class _FullScreenFileViewerState extends State<FullScreenFileViewer> {
actionDrawer: null,
secondaryActionDrawer: null,
bottomNavBar: null,
pullDownToRefresh: false,
onPullDown: () async {},
);
}
}

View File

@@ -400,6 +400,8 @@ class _AddPatientState extends State<AddPatient> {
actionDrawer: null,
secondaryActionDrawer: null,
bottomNavBar: null,
pullDownToRefresh: false,
onPullDown: () async {},
);
// return Scaffold(
// // appBar: const MIHAppBar(

View File

@@ -664,6 +664,8 @@ class _EditPatientState extends State<EditPatient> {
actionDrawer: null,
secondaryActionDrawer: null,
bottomNavBar: null,
pullDownToRefresh: false,
onPullDown: () async {},
);
// return Scaffold(
// // appBar: const MIHAppBar(

View File

@@ -348,6 +348,10 @@ class _PatientManagerState extends State<PatientManager> {
iconSize: 35,
onTap: () {
Navigator.of(context).pop();
Navigator.of(context).popAndPushNamed(
'/',
);
},
);
}
@@ -420,6 +424,8 @@ class _PatientManagerState extends State<PatientManager> {
actionDrawer: null,
secondaryActionDrawer: null,
bottomNavBar: null,
pullDownToRefresh: false,
onPullDown: () async {},
);
// return Scaffold(
// // appBar: const MIHAppBar(

View File

@@ -110,6 +110,10 @@ class _PatientViewState extends State<PatientView> {
iconSize: 35,
onTap: () {
Navigator.of(context).pop();
Navigator.of(context).popAndPushNamed(
'/',
);
},
);
}
@@ -184,6 +188,8 @@ class _PatientViewState extends State<PatientView> {
actionDrawer: null,
secondaryActionDrawer: null,
bottomNavBar: null,
pullDownToRefresh: false,
onPullDown: () async {},
);
// return Scaffold(
// body: SafeArea(