import 'package:flutter/widgets.dart';
import 'package:initial_folder/screens/checkout/success_paid_course.dart';
import 'package:initial_folder/screens/course/sertif.dart';
import 'package:initial_folder/screens/home/components/body_comp/lihat_semua_kursus_page.dart';
import 'package:initial_folder/screens/home/components/home_page.dart';
import 'package:initial_folder/screens/home/components/notification.dart';
import 'package:initial_folder/screens/home/home_screen.dart';
import 'package:initial_folder/screens/login/reset/reset_screen.dart';
import 'package:initial_folder/screens/login/reset/success_screen.dart';
import 'package:initial_folder/screens/login/login_with_email/login_email_screen.dart';
import 'package:initial_folder/screens/login/login_screen.dart';
import 'package:initial_folder/screens/profile/account_sign_in/riwayat_transaksi_pending.dart';
import 'package:initial_folder/screens/registrasi/registrasi_screen.dart';
import 'package:initial_folder/screens/registrasi/registrasi_with_email/registrasi_email_screen.dart';
import 'package:initial_folder/screens/registrasi/registrasi_with_email/success_regis_screen.dart';
import 'package:initial_folder/screens/profile/account_sign_in/incomplete_profile_screen.dart';
import 'package:initial_folder/widgets/search_and_filter_course.dart';

import 'screens/profile/account_sign_in/riwayat_transaksi.dart';

// We use name route
// All our routes will be available here
final Map<String, WidgetBuilder> routes = {
  HomeScreen.routeName: (context) => HomeScreen(),
  HomePage.routeName: (context) => HomePage(),
  // Splash.routeName: (context) => Splash(),
  // RegistrationScreen.routeName: (context) => RegistrationScreen(),
  RegistrationScreen.routeName: (context) => RegistrationEmail(),
  RegistrationEmail.routeName: (context) => RegistrationEmail(),
  LoginScreen.routeName: (context) => LoginScreen(),
  LoginEmail.routeName: (context) => LoginEmail(),
  ResetScreen.routeName: (context) => ResetScreen(),
  RegisSuccess.routeName: (context) => RegisSuccess(),
  ResetSuccess.routeName: (context) {
  final email = ModalRoute.of(context)!.settings.arguments as String;
  return ResetSuccess(email: email);},
  SearchAndFilterCourse.routeName: (context) => SearchAndFilterCourse(),
  Sertif.routeName: (context) => Sertif(),
  IncompleteProfile.routeName: (context) => IncompleteProfile(),
  Notifikasi.routeName: (context) => Notifikasi(),
  LihatSemuaKursus.routeName: (context) => LihatSemuaKursus(),
  RiwayatTransaksi.routeName: (context) => RiwayatTransaksi(),
  RiwayatTransaksiPending.routeName:(context) => RiwayatTransaksiPending(),
  SuccessPaidCourse.routeName:(context) => SuccessPaidCourse(),
 
  // '/detail_course': (context) => DetailCourseScreen(
  //     otherCourseModel:
  //         ModalRoute.of(context)?.settings.arguments as OthersCourseModel,id: ,),
  // '/course_by_category': (context) => CourseByCategory(
  //     courseByCategory: ModalRoute.of(context)?.settings.arguments as NewCourseModel, id: '',),
};
