update
This commit is contained in:
parent
f0d6bca4f3
commit
3aa12bfcad
135 changed files with 19410 additions and 112 deletions
|
|
@ -25,21 +25,6 @@ class _MainPageState extends State<MainPage> {
|
|||
await _authService.signOut().then((_) => {context.go('/'), showNotification(context, 'Logged Out', true)});
|
||||
}
|
||||
|
||||
void checkLoggedIn() async {
|
||||
final user = _authService.getCurrentUser();
|
||||
if (user == null) {
|
||||
if (mounted) {
|
||||
context.push('/');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
checkLoggedIn();
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return PopScope(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue