Refactor routing dan hapus fitur lengkapi profil
- Ubah konstanta rute menjadi lowercase - Hapus metode dan tampilan lengkapi profil - Hapus kontroler dan field yang tidak digunakan - Perbarui navigasi dengan rute baru - Singkronkan perubahan di seluruh modul auth
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import 'package:get/get.dart';
|
||||
import 'package:penyaluran_app/app/modules/auth/views/login_view.dart';
|
||||
import 'package:penyaluran_app/app/modules/auth/views/register_view.dart';
|
||||
import 'package:penyaluran_app/app/modules/auth/views/complete_profile_view.dart';
|
||||
import 'package:penyaluran_app/app/modules/home/views/home_view.dart';
|
||||
import 'package:penyaluran_app/app/modules/dashboard/views/warga_dashboard_view.dart';
|
||||
import 'package:penyaluran_app/app/modules/dashboard/views/petugas_verifikasi_dashboard_view.dart';
|
||||
@ -16,46 +15,41 @@ part 'app_routes.dart';
|
||||
class AppPages {
|
||||
AppPages._();
|
||||
|
||||
static const INITIAL = Routes.LOGIN;
|
||||
static const initial = Routes.login;
|
||||
|
||||
static final routes = [
|
||||
GetPage(
|
||||
name: _Paths.HOME,
|
||||
name: _Paths.home,
|
||||
page: () => const HomeView(),
|
||||
binding: HomeBinding(),
|
||||
),
|
||||
GetPage(
|
||||
name: _Paths.LOGIN,
|
||||
name: _Paths.login,
|
||||
page: () => const LoginView(),
|
||||
binding: AuthBinding(),
|
||||
),
|
||||
GetPage(
|
||||
name: _Paths.REGISTER,
|
||||
name: _Paths.register,
|
||||
page: () => const RegisterView(),
|
||||
binding: AuthBinding(),
|
||||
),
|
||||
GetPage(
|
||||
name: _Paths.COMPLETE_PROFILE,
|
||||
page: () => const CompleteProfileView(),
|
||||
binding: AuthBinding(),
|
||||
),
|
||||
GetPage(
|
||||
name: _Paths.WARGA_DASHBOARD,
|
||||
name: _Paths.wargaDashboard,
|
||||
page: () => const WargaDashboardView(),
|
||||
binding: DashboardBinding(),
|
||||
),
|
||||
GetPage(
|
||||
name: _Paths.PETUGAS_VERIFIKASI_DASHBOARD,
|
||||
name: _Paths.petugasVerifikasiDashboard,
|
||||
page: () => const PetugasVerifikasiDashboardView(),
|
||||
binding: DashboardBinding(),
|
||||
),
|
||||
GetPage(
|
||||
name: _Paths.PETUGAS_DESA_DASHBOARD,
|
||||
name: _Paths.petugasDesaDashboard,
|
||||
page: () => const PetugasDesaDashboardView(),
|
||||
binding: DashboardBinding(),
|
||||
),
|
||||
GetPage(
|
||||
name: _Paths.DONATUR_DASHBOARD,
|
||||
name: _Paths.donaturDashboard,
|
||||
page: () => const DonaturDashboardView(),
|
||||
binding: DashboardBinding(),
|
||||
),
|
||||
|
Reference in New Issue
Block a user