feat: Implement home screen with navigation and update login flow

This commit is contained in:
2025-08-20 23:08:08 +02:00
parent 592e79a375
commit 7792023b22
7 changed files with 71 additions and 19 deletions

View File

@@ -13,9 +13,9 @@ class _SplashScreenState extends State<SplashScreen> with SingleTickerProviderSt
void initState() {
super.initState();
_ctrl = AnimationController(vsync: this, duration: Duration(seconds: 3))..repeat(reverse: true);
// simulate load then navigate
Timer(Duration(seconds: 2), () {
Navigator.pushReplacementNamed(context, '/');
// simulate load then navigate depending on token presence
Timer(Duration(seconds: 1), () {
Navigator.pushReplacementNamed(context, '/home');
});
}