mirrored_repositories/FLutter_Products_app_MVC/lib
import 'package:get/get.dart';
import 'package:test1/views/screens/auth/sign_in_page.dart';
import 'package:test1/views/screens/auth/sign_up_page.dart';
import 'package:test1/views/screens/crud/product_details_page.dart';
import 'package:test1/views/screens/home/main_page.dart';
import 'package:test1/views/screens/crud/edit_product_page.dart';
import 'package:test1/views/screens/setting/setting_page.dart';
import 'package:test1/views/screens/splach_screen/splash_screen.dart';
import '../views/screens/how we are/contact_us.dart';
import '../views/screens/user profile/profile_page.dart';

class Routes {
  static const editproduct = '/editproduct';
  static const myproducts = '/myproducts';
  static const addproduct = '/addproduct';
  static const contactus = '/contactus';
  static const products = '/products';
  static const mainpage = '/mainpage';
  static const settingpage = '/settingpage';
  static const profile = '/pro';
  static const productDetails = '/product_details';
  static const insertProduct = '/insert_product';
  static const signup = '/signup';
  static const login = '/login';
  static const splashscreen = '/splashscreen';
}

class AppRoutes {
  static const addproduct = Routes.addproduct;
  static const editproduct = Routes.editproduct;
  static const myproducts = Routes.myproducts;
  static const contactus = Routes.contactus;
  static const products = Routes.products;
  static const mainpage = Routes.mainpage;
  static const settingpage = Routes.settingpage;
  static const profile = Routes.profile;
  static const productDetails = Routes.productDetails;
  static const insertProduct = Routes.insertProduct;
  static const signup = Routes.signup;
  static const login = Routes.login;
  static const splashscreen = Routes.splashscreen;

  static final routes = [
    GetPage(
      name: Routes.mainpage,
      page: () => MainPage(),
      transition: Transition.fadeIn,
    ),
    GetPage(
      name: Routes.settingpage,
      page: () => SettingPage(),
      transition: Transition.fadeIn,
    ),
    GetPage(
      name: Routes.contactus,
      transition: Transition.fadeIn,
      page: () => ContactUs(),
    ),
    GetPage(
      name: Routes.profile,
      transition: Transition.fadeIn,
      page: () => ProfilePage(),
    ),
    // GetPage(
    //   name: Routes.addproduct,
    //   page: () => AddProductPage(),
    //   transition: Transition.fadeIn,
    // ),
    // GetPage(
    //     name: Routes.products,
    //     page: () => ProductsListPage(),
    //     transition: Transition.fadeIn),
    // GetPage(
    //     name: Routes.myproducts,
    //     page: () => MyProductsPage(),
    //     transition: Transition.fadeIn),
    GetPage(
        name: Routes.productDetails,
        page: () => ProductDetailsPage(),
        transition: Transition.fadeIn),
    GetPage(
      name: Routes.editproduct,
      page: () => EditProductPage(),
      transition: Transition.fadeIn,
    ),
    GetPage(
        name: Routes.signup,
        page: () => SignUpPage(),
        transition: Transition.fadeIn),
    GetPage(
        name: Routes.login,
        page: () => SignInPage(),
        transition: Transition.fadeIn),
    GetPage(
      name: Routes.splashscreen,
      transition: Transition.fadeIn,
      page: () => SplachScreen(),
    ),
  ];
}
