update
This commit is contained in:
parent
f0d6bca4f3
commit
3aa12bfcad
135 changed files with 19410 additions and 112 deletions
|
|
@ -27,15 +27,6 @@ class _LoginPageState extends State<LoginPage> {
|
|||
|
||||
bool _isLoading = false;
|
||||
|
||||
void checkLoggedIn() async {
|
||||
final user = _authService.getCurrentUser();
|
||||
if (user == null) {
|
||||
context.push('/');
|
||||
} else {
|
||||
context.push('/main');
|
||||
}
|
||||
}
|
||||
|
||||
void _signIn() async {
|
||||
// if (_isLoading) return;
|
||||
|
||||
|
|
@ -102,12 +93,6 @@ class _LoginPageState extends State<LoginPage> {
|
|||
// }
|
||||
}
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
checkLoggedIn();
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_emailController.dispose();
|
||||
|
|
@ -174,6 +159,25 @@ class _LoginPageState extends State<LoginPage> {
|
|||
)),
|
||||
),
|
||||
),
|
||||
const Gap(16),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
const TextWidget(
|
||||
text: "Don't have an account?",
|
||||
size: 14,
|
||||
),
|
||||
const Gap(8),
|
||||
GestureDetector(
|
||||
onTap: () => {context.push('/register')},
|
||||
child: const TextWidget(
|
||||
text: 'Register here',
|
||||
size: 14,
|
||||
underlined: true,
|
||||
),
|
||||
)
|
||||
],
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue