fix errors
This commit is contained in:
@@ -301,8 +301,6 @@ class _ProfileState extends State<Profile> {
|
||||
});
|
||||
try {
|
||||
await context.read<MainModel>().signout();
|
||||
Navigator.of(context).pushNamedAndRemoveUntil(
|
||||
"/welcome", ModalRoute.withName('/welcome'));
|
||||
} catch (e) {} finally {
|
||||
Future.delayed(Duration(seconds: 1), () {
|
||||
if (mounted) {
|
||||
@@ -311,6 +309,8 @@ class _ProfileState extends State<Profile> {
|
||||
});
|
||||
}
|
||||
});
|
||||
Navigator.of(context).pushNamedAndRemoveUntil(
|
||||
"/welcome", ModalRoute.withName('/welcome'));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user