feat(auth): Supprime l'ancien workflow d'inscription parent et ajoute les assets pour le nouveau workflow
This commit is contained in:
@@ -1,27 +1,23 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import '../screens/auth/login_screen.dart';
|
||||
import '../screens/auth/parent_register_screen.dart';
|
||||
import '../screens/home/home_screen.dart';
|
||||
|
||||
class AppRouter {
|
||||
static const String login = '/login';
|
||||
static const String parentRegister = '/parent-register';
|
||||
static const String home = '/home';
|
||||
|
||||
static Route<dynamic> generateRoute(RouteSettings settings) {
|
||||
switch (settings.name) {
|
||||
case login:
|
||||
return MaterialPageRoute(builder: (_) => const LoginScreen());
|
||||
case parentRegister:
|
||||
return MaterialPageRoute(builder: (_) => const ParentRegisterScreen());
|
||||
case home:
|
||||
return MaterialPageRoute(builder: (_) => const HomeScreen());
|
||||
default:
|
||||
return MaterialPageRoute(
|
||||
builder: (_) => Scaffold(
|
||||
body: Center(
|
||||
child: Text('Route non définie: ${settings.name}'),
|
||||
child: Text('Route non définie: [36m${settings.name}[0m'),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user