|
|
|
|
import 'package:car_customer_app/models/user/register_user.dart';
|
|
|
|
|
import 'package:car_customer_app/views/dashboard/dashboard_page.dart';
|
|
|
|
|
// import 'package:car_customer_app/views/settings/create_services_page.dart';
|
|
|
|
|
// import 'package:car_customer_app/views/settings/dealership_page.dart';
|
|
|
|
|
// import 'package:car_customer_app/views/settings/define_branch_page.dart';
|
|
|
|
|
// import 'package:car_customer_app/views/settings/define_license_page.dart';
|
|
|
|
|
import 'package:car_customer_app/views/user/change_email_page.dart';
|
|
|
|
|
import 'package:car_customer_app/views/user/change_mobile_page.dart';
|
|
|
|
|
import 'package:car_customer_app/views/user/change_password_page.dart';
|
|
|
|
|
import 'package:car_customer_app/views/user/complete_profile_page.dart';
|
|
|
|
|
import 'package:car_customer_app/views/user/confirm_new_password_page.dart';
|
|
|
|
|
import 'package:car_customer_app/views/user/edit_account_page.dart';
|
|
|
|
|
import 'package:car_customer_app/views/user/forget_password_method_page.dart';
|
|
|
|
|
import 'package:car_customer_app/views/user/forget_password_page.dart';
|
|
|
|
|
import 'package:car_customer_app/views/user/login_method_selection_page.dart';
|
|
|
|
|
import 'package:car_customer_app/views/user/login_verification_page.dart';
|
|
|
|
|
import 'package:car_customer_app/views/user/login_verify_account_page.dart';
|
|
|
|
|
import 'package:car_customer_app/views/user/login_with_password_page.dart';
|
|
|
|
|
// import 'package:car_customer_app/views/user/profile/profile_1_page.dart';
|
|
|
|
|
// import 'package:car_customer_app/views/user/profile/profile_2_page.dart';
|
|
|
|
|
// import 'package:car_customer_app/views/user/profile/profile_3_page.dart';
|
|
|
|
|
import 'package:car_customer_app/views/user/register_page.dart';
|
|
|
|
|
import 'package:car_customer_app/views/user/register_selection_page.dart';
|
|
|
|
|
import 'package:car_customer_app/views/splash/splash_page.dart';
|
|
|
|
|
import 'package:car_customer_app/views/user/vertify_password_page.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
class AppRoutes {
|
|
|
|
|
//User
|
|
|
|
|
static const String splash = "/splash";
|
|
|
|
|
static const String registerSelection = "/registerSelection";
|
|
|
|
|
static const String loginVerifyAccount = "/loginVerifyAccount";
|
|
|
|
|
static const String register = "/register";
|
|
|
|
|
static const String forgetPassword = "/forgetPassword";
|
|
|
|
|
static const String loginVerification = "/loginVerification";
|
|
|
|
|
static const String loginWithPassword = "/loginWithPassword";
|
|
|
|
|
static const String loginMethodSelection = "/loginMethodSelection";
|
|
|
|
|
static const String completeProfile = "/completeProfile";
|
|
|
|
|
static const String profile1 = "/profile1";
|
|
|
|
|
static const String profile2 = "/profile2";
|
|
|
|
|
static const String profile3 = "/profile3";
|
|
|
|
|
static const String verifyPassword = "/vertifyPassword";
|
|
|
|
|
static const String confirmNewPasswordPage = "/confirmNewPasswordPage";
|
|
|
|
|
static const String defineLicense = "/defineLicese";
|
|
|
|
|
static const String changePassword = "/changePassword";
|
|
|
|
|
static const String forgetPasswordMethodPage = "/forgetPasswordMethodPage";
|
|
|
|
|
static const String changeMobilePage = "/changeMobilePage";
|
|
|
|
|
static const String changeEmailPage = "/changeEmailPage";
|
|
|
|
|
static const String editAccountPage = "/editAccoundPage";
|
|
|
|
|
|
|
|
|
|
static const String dashboard = "/dashboard";
|
|
|
|
|
|
|
|
|
|
//settings
|
|
|
|
|
static const String dealershipSetting = "/dealershipSetting";
|
|
|
|
|
static const String defineBranch = "/defineBranch";
|
|
|
|
|
static const String createServices = "/createServices";
|
|
|
|
|
|
|
|
|
|
static const String initialRoute = splash;
|
|
|
|
|
|
|
|
|
|
static final Map<String, WidgetBuilder> routes = {
|
|
|
|
|
//User
|
|
|
|
|
splash: (context) => const SplashPage(),
|
|
|
|
|
registerSelection: (context) => RegisterSelectionPage(),
|
|
|
|
|
loginVerifyAccount: (context) => LoginVerifyAccountPage(),
|
|
|
|
|
register: (context) => RegisterPage(),
|
|
|
|
|
forgetPassword: (context) => ForgetPasswordPage(),
|
|
|
|
|
loginVerification: (context) => const LoginVerificationPage(),
|
|
|
|
|
loginWithPassword: (context) => LoginWithPassword(),
|
|
|
|
|
loginMethodSelection: (context) => LoginMethodSelectionPage(ModalRoute.of(context)!.settings.arguments as String),
|
|
|
|
|
completeProfile: (context) => CompleteProfilePage(ModalRoute.of(context)!.settings.arguments as RegisterUserRespModel),
|
|
|
|
|
// profile1: (context) => Profile1Page(),
|
|
|
|
|
// profile2: (context) => Profile2Page(),
|
|
|
|
|
// profile3: (context) => Profile3Page(),
|
|
|
|
|
// defineLicense: (context) => DefineLicensePage(),
|
|
|
|
|
verifyPassword: (context) => VerifyPasswordPage(),
|
|
|
|
|
confirmNewPasswordPage: (context) => ConfirmNewPasswordPage(ModalRoute.of(context)!.settings.arguments as String),
|
|
|
|
|
changePassword: (context) => ChangePasswordPage(),
|
|
|
|
|
forgetPasswordMethodPage: (context) => ForgetPasswordMethodPage(ModalRoute.of(context)!.settings.arguments as String),
|
|
|
|
|
changeMobilePage: (context) => ChangeMobilePage(),
|
|
|
|
|
changeEmailPage : (context) => const ChangeEmailPage(),
|
|
|
|
|
editAccountPage : (context) => EditAccountPage(),
|
|
|
|
|
//Home page
|
|
|
|
|
dashboard: (context) => const DashboardPage(),
|
|
|
|
|
|
|
|
|
|
//setting
|
|
|
|
|
// dealershipSetting: (context) => DealershipPage(),
|
|
|
|
|
// defineBranch: (context) => DefineBranchPage(),
|
|
|
|
|
// createServices: (context) => CreateServicesPage(),
|
|
|
|
|
};
|
|
|
|
|
}
|