feat: Add legal and privacy routes to AppRouter #53
@ -1,10 +1,11 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:go_router/go_router.dart';
|
|
||||||
import 'package:p_tits_pas/models/am_user_registration_data.dart';
|
import 'package:p_tits_pas/models/am_user_registration_data.dart';
|
||||||
import 'package:p_tits_pas/screens/auth/am/am_register_step1_sceen.dart';
|
import 'package:p_tits_pas/screens/auth/am/am_register_step1_sceen.dart';
|
||||||
import 'package:p_tits_pas/screens/auth/am/am_register_step2_sceen.dart';
|
import 'package:p_tits_pas/screens/auth/am/am_register_step2_sceen.dart';
|
||||||
import 'package:p_tits_pas/screens/auth/am/am_register_step3_sceen.dart';
|
import 'package:p_tits_pas/screens/auth/am/am_register_step3_sceen.dart';
|
||||||
import 'package:p_tits_pas/screens/auth/am/am_register_step4_sceen.dart';
|
import 'package:p_tits_pas/screens/auth/am/am_register_step4_sceen.dart';
|
||||||
|
import 'package:p_tits_pas/screens/legal/legal_page.dart';
|
||||||
|
import 'package:p_tits_pas/screens/legal/privacy_page.dart';
|
||||||
import '../screens/auth/login_screen.dart';
|
import '../screens/auth/login_screen.dart';
|
||||||
import '../screens/auth/register_choice_screen.dart';
|
import '../screens/auth/register_choice_screen.dart';
|
||||||
import '../screens/auth/parent/parent_register_step1_screen.dart';
|
import '../screens/auth/parent/parent_register_step1_screen.dart';
|
||||||
@ -18,6 +19,8 @@ import '../models/parent_user_registration_data.dart';
|
|||||||
class AppRouter {
|
class AppRouter {
|
||||||
static const String login = '/login';
|
static const String login = '/login';
|
||||||
static const String registerChoice = '/register-choice';
|
static const String registerChoice = '/register-choice';
|
||||||
|
static const String legal = '/legal';
|
||||||
|
static const String privacy = '/privacy';
|
||||||
static const String parentRegisterStep1 = '/parent-register/step1';
|
static const String parentRegisterStep1 = '/parent-register/step1';
|
||||||
static const String parentRegisterStep2 = '/parent-register/step2';
|
static const String parentRegisterStep2 = '/parent-register/step2';
|
||||||
static const String parentRegisterStep3 = '/parent-register/step3';
|
static const String parentRegisterStep3 = '/parent-register/step3';
|
||||||
@ -48,8 +51,12 @@ class AppRouter {
|
|||||||
screen = const RegisterChoiceScreen();
|
screen = const RegisterChoiceScreen();
|
||||||
slideTransition = true;
|
slideTransition = true;
|
||||||
break;
|
break;
|
||||||
case parentRegisterStep1:
|
case legal:
|
||||||
screen = const ParentRegisterStep1Screen();
|
screen = const LegalPage();
|
||||||
|
slideTransition = true;
|
||||||
|
break;
|
||||||
|
case privacy:
|
||||||
|
screen = const PrivacyPage();
|
||||||
slideTransition = true;
|
slideTransition = true;
|
||||||
break;
|
break;
|
||||||
case parentRegisterStep2:
|
case parentRegisterStep2:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user