Add secondary action and secondary action drawer
This commit is contained in:
@@ -324,9 +324,11 @@ class _MIHAboutState extends State<MIHAbout> {
|
||||
Widget build(BuildContext context) {
|
||||
return MIHLayoutBuilder(
|
||||
actionButton: getActionButton(),
|
||||
secondaryActionButton: null,
|
||||
header: getHeader(),
|
||||
body: getBody(),
|
||||
rightDrawer: null,
|
||||
actionDrawer: null,
|
||||
secondaryActionDrawer: null,
|
||||
bottomNavBar: null,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -349,8 +349,10 @@ class _PatientAccessRequestState extends State<PatientAccessRequest> {
|
||||
return MIHLayoutBuilder(
|
||||
actionButton: getActionButton(),
|
||||
header: getHeader(),
|
||||
secondaryActionButton: null,
|
||||
body: getBody(),
|
||||
rightDrawer: null,
|
||||
actionDrawer: null,
|
||||
secondaryActionDrawer: null,
|
||||
bottomNavBar: null,
|
||||
);
|
||||
// return Scaffold(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:patient_manager/mih_packages/authentication/signin_or_register.dart';
|
||||
import 'package:patient_manager/mih_packages/mih_home/home.dart';
|
||||
import 'package:patient_manager/mih_packages/mih_home/MIH_Profile_Getter.dart';
|
||||
import 'package:supertokens_flutter/supertokens.dart';
|
||||
|
||||
class AuthCheck extends StatefulWidget {
|
||||
@@ -30,7 +30,7 @@ class _AuthCheckState extends State<AuthCheck> {
|
||||
future: signedIn,
|
||||
builder: (context, snapshot) {
|
||||
if (snapshot.data == true) {
|
||||
return const Home();
|
||||
return const MIHProfileGetter();
|
||||
} else {
|
||||
return const SignInOrRegister();
|
||||
}
|
||||
|
||||
@@ -354,8 +354,10 @@ class _ForgotPasswordState extends State<ForgotPassword> {
|
||||
return MIHLayoutBuilder(
|
||||
actionButton: getActionButton(),
|
||||
header: getHeader(),
|
||||
secondaryActionButton: null,
|
||||
body: getBody(),
|
||||
rightDrawer: null,
|
||||
actionDrawer: null,
|
||||
secondaryActionDrawer: null,
|
||||
bottomNavBar: null,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -410,8 +410,10 @@ class _RegisterState extends State<Register> {
|
||||
return MIHLayoutBuilder(
|
||||
actionButton: getActionButton(),
|
||||
header: getHeader(),
|
||||
secondaryActionButton: null,
|
||||
body: getBody(),
|
||||
rightDrawer: null,
|
||||
actionDrawer: null,
|
||||
secondaryActionDrawer: null,
|
||||
bottomNavBar: null,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -412,8 +412,10 @@ class _ResetPasswordState extends State<ResetPassword> {
|
||||
return MIHLayoutBuilder(
|
||||
actionButton: getActionButton(),
|
||||
header: getHeader(),
|
||||
secondaryActionButton: null,
|
||||
body: getBody(),
|
||||
rightDrawer: null,
|
||||
actionDrawer: null,
|
||||
secondaryActionDrawer: null,
|
||||
bottomNavBar: null,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -577,8 +577,10 @@ class _SignInState extends State<SignIn> {
|
||||
return MIHLayoutBuilder(
|
||||
actionButton: getActionButton(),
|
||||
header: getHeader(),
|
||||
secondaryActionButton: null,
|
||||
body: getBody(),
|
||||
rightDrawer: null,
|
||||
actionDrawer: null,
|
||||
secondaryActionDrawer: null,
|
||||
bottomNavBar: null,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -370,9 +370,11 @@ class _ManageBusinessProfileState extends State<ManageBusinessProfile> {
|
||||
Widget build(BuildContext context) {
|
||||
return MIHLayoutBuilder(
|
||||
actionButton: getActionButton(),
|
||||
secondaryActionButton: null,
|
||||
header: getHeader(),
|
||||
body: getBody(),
|
||||
rightDrawer: null,
|
||||
actionDrawer: null,
|
||||
secondaryActionDrawer: null,
|
||||
bottomNavBar: null,
|
||||
);
|
||||
// return Scaffold(
|
||||
|
||||
@@ -435,9 +435,11 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
|
||||
Widget build(BuildContext context) {
|
||||
return MIHLayoutBuilder(
|
||||
actionButton: getActionButton(),
|
||||
secondaryActionButton: null,
|
||||
header: getHeader(),
|
||||
body: getBody(),
|
||||
rightDrawer: null,
|
||||
actionDrawer: null,
|
||||
secondaryActionDrawer: null,
|
||||
bottomNavBar: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -438,8 +438,10 @@ class _ProfileUserUpdateState extends State<ProfileUserUpdate> {
|
||||
return MIHLayoutBuilder(
|
||||
actionButton: getActionButton(),
|
||||
header: getHeader(),
|
||||
secondaryActionButton: null,
|
||||
body: getBody(),
|
||||
rightDrawer: null,
|
||||
actionDrawer: null,
|
||||
secondaryActionDrawer: null,
|
||||
bottomNavBar: null,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -395,8 +395,10 @@ class _AddPatientState extends State<AddPatient> {
|
||||
return MIHLayoutBuilder(
|
||||
actionButton: getActionButton(),
|
||||
header: getHeader(),
|
||||
secondaryActionButton: null,
|
||||
body: getBody(),
|
||||
rightDrawer: null,
|
||||
actionDrawer: null,
|
||||
secondaryActionDrawer: null,
|
||||
bottomNavBar: null,
|
||||
);
|
||||
// return Scaffold(
|
||||
|
||||
@@ -659,8 +659,10 @@ class _EditPatientState extends State<EditPatient> {
|
||||
return MIHLayoutBuilder(
|
||||
actionButton: getActionButton(),
|
||||
header: getHeader(),
|
||||
secondaryActionButton: null,
|
||||
body: getBody(),
|
||||
rightDrawer: null,
|
||||
actionDrawer: null,
|
||||
secondaryActionDrawer: null,
|
||||
bottomNavBar: null,
|
||||
);
|
||||
// return Scaffold(
|
||||
|
||||
@@ -415,8 +415,10 @@ class _PatientManagerState extends State<PatientManager> {
|
||||
return MIHLayoutBuilder(
|
||||
actionButton: getActionButton(),
|
||||
header: getHeader(),
|
||||
secondaryActionButton: null,
|
||||
body: getBody(),
|
||||
rightDrawer: null,
|
||||
actionDrawer: null,
|
||||
secondaryActionDrawer: null,
|
||||
bottomNavBar: null,
|
||||
);
|
||||
// return Scaffold(
|
||||
|
||||
@@ -179,8 +179,10 @@ class _PatientViewState extends State<PatientView> {
|
||||
return MIHLayoutBuilder(
|
||||
actionButton: getActionButton(),
|
||||
header: getHeader(),
|
||||
secondaryActionButton: null,
|
||||
body: getBody(),
|
||||
rightDrawer: null,
|
||||
actionDrawer: null,
|
||||
secondaryActionDrawer: null,
|
||||
bottomNavBar: null,
|
||||
);
|
||||
// return Scaffold(
|
||||
|
||||
Reference in New Issue
Block a user