import 'package:mc_common_app/models/user/register_user.dart';

// import 'package:mc_common_app/views/settings/create_services_page.dart';
// import 'package:mc_common_app/views/settings/dealership_page.dart';
// import 'package:mc_common_app/views/settings/define_branch_page.dart';
// import 'package:mc_common_app/views/settings/define_license_page.dart';
import 'package:mc_common_app/views/user/change_email_page.dart';
import 'package:mc_common_app/views/user/change_mobile_page.dart';
import 'package:mc_common_app/views/user/change_password_page.dart';
import 'package:mc_common_app/views/user/complete_profile_page.dart';
import 'package:mc_common_app/views/user/confirm_new_password_page.dart';
import 'package:mc_common_app/views/user/edit_account_page.dart';
import 'package:mc_common_app/views/user/forget_password_method_page.dart';
import 'package:mc_common_app/views/user/forget_password_page.dart';
import 'package:mc_common_app/views/user/login_method_selection_page.dart';
import 'package:mc_common_app/views/user/login_verification_page.dart';
import 'package:mc_common_app/views/user/login_verify_account_page.dart';
import 'package:mc_common_app/views/user/login_with_password_page.dart';

// import 'package:mc_common_app/views/user/profile/profile_1_page.dart';
// import 'package:mc_common_app/views/user/profile/profile_2_page.dart';
// import 'package:mc_common_app/views/user/profile/profile_3_page.dart';
import 'package:mc_common_app/views/user/register_page.dart';
import 'package:mc_common_app/views/user/register_provider_page.dart';
import 'package:mc_common_app/views/user/register_selection_page.dart';
import 'package:mc_common_app/views/splash/splash_page.dart';
import 'package:mc_common_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 registerCustomer = "/registerCustomer";
  static const String registerProvider= "/registerProvider";
  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 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";
  static const String bookProviderAppView = "/bookProviderAppView";
  static const String appointmentDetailView = "/appointmentDetailView";



  static const String initialRoute = splash;

  static final Map<String, WidgetBuilder> routes = {
    //User
    splash: (context) => const SplashPage(),
    registerSelection: (context) => RegisterSelectionPage(),
    loginVerifyAccount: (context) => LoginVerifyAccountPage(),
    registerCustomer: (context) => RegisterCustomerPage(),
    registerProvider: (context) => RegisterProviderPage(),
    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),
    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(),
  };
}
