File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,15 @@ class _AppDrawerState extends State<AppDrawer> {
78
78
} else {
79
79
return InkWell (
80
80
splashColor: Colors .red,
81
- onTap: () {
82
- signOut ();
81
+ onTap: () async {
82
+ showDialog (
83
+ context: context,
84
+ builder: (context) => const Center (
85
+ child: CircularProgressIndicator (),
86
+ ),
87
+ );
88
+ await signOut ();
89
+ Navigator .of (context).popUntil ((route) => route.isFirst);
83
90
Provider .of <AppStateProvider >(context, listen: false )
84
91
.updateUserID ("" );
85
92
},
Original file line number Diff line number Diff line change @@ -83,8 +83,16 @@ class LoginForm extends StatelessWidget {
83
83
"Login" ,
84
84
),
85
85
onPressed: () async {
86
+ showDialog (
87
+ context: context,
88
+ builder: (context) => const Center (
89
+ child: CircularProgressIndicator (),
90
+ ),
91
+ );
86
92
final res = await signIn (
87
93
emailController.text, passwordController.text);
94
+ Navigator .of (context)
95
+ .popUntil ((route) => route.isFirst);
88
96
if (res == 'Signed In' ) {
89
97
Provider .of <AppStateProvider >(context,
90
98
listen: false )
You can’t perform that action at this time.
0 commit comments