feat: Implement home screen with navigation and update login flow
This commit is contained in:
@@ -44,7 +44,7 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
setState(() { _loading = true; });
|
||||
final ok = await auth.login(username, password);
|
||||
setState(() { _loading = false; });
|
||||
if (ok) Navigator.pushReplacementNamed(context, '/profile');
|
||||
if (ok) Navigator.pushReplacementNamed(context, '/home');
|
||||
else ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text('Bejelentkezés sikertelen')));
|
||||
},
|
||||
child: _loading ? SizedBox(height: 16, width: 16, child: CircularProgressIndicator(strokeWidth: 2)) : Text('Bejelentkezés'),
|
||||
|
||||
Reference in New Issue
Block a user