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(),
|
||||
),
|
||||
|
@ -2,25 +2,22 @@ part of 'app_pages.dart';
|
||||
|
||||
abstract class Routes {
|
||||
Routes._();
|
||||
static const HOME = _Paths.HOME;
|
||||
static const LOGIN = _Paths.LOGIN;
|
||||
static const REGISTER = _Paths.REGISTER;
|
||||
static const COMPLETE_PROFILE = _Paths.COMPLETE_PROFILE;
|
||||
static const WARGA_DASHBOARD = _Paths.WARGA_DASHBOARD;
|
||||
static const PETUGAS_VERIFIKASI_DASHBOARD =
|
||||
_Paths.PETUGAS_VERIFIKASI_DASHBOARD;
|
||||
static const PETUGAS_DESA_DASHBOARD = _Paths.PETUGAS_DESA_DASHBOARD;
|
||||
static const DONATUR_DASHBOARD = _Paths.DONATUR_DASHBOARD;
|
||||
static const home = _Paths.home;
|
||||
static const login = _Paths.login;
|
||||
static const register = _Paths.register;
|
||||
static const wargaDashboard = _Paths.wargaDashboard;
|
||||
static const petugasVerifikasiDashboard = _Paths.petugasVerifikasiDashboard;
|
||||
static const petugasDesaDashboard = _Paths.petugasDesaDashboard;
|
||||
static const donaturDashboard = _Paths.donaturDashboard;
|
||||
}
|
||||
|
||||
abstract class _Paths {
|
||||
_Paths._();
|
||||
static const HOME = '/home';
|
||||
static const LOGIN = '/login';
|
||||
static const REGISTER = '/register';
|
||||
static const COMPLETE_PROFILE = '/complete-profile';
|
||||
static const WARGA_DASHBOARD = '/warga-dashboard';
|
||||
static const PETUGAS_VERIFIKASI_DASHBOARD = '/petugas-verifikasi-dashboard';
|
||||
static const PETUGAS_DESA_DASHBOARD = '/petugas-desa-dashboard';
|
||||
static const DONATUR_DASHBOARD = '/donatur-dashboard';
|
||||
static const home = '/home';
|
||||
static const login = '/login';
|
||||
static const register = '/register';
|
||||
static const wargaDashboard = '/warga-dashboard';
|
||||
static const petugasVerifikasiDashboard = '/petugas-verifikasi-dashboard';
|
||||
static const petugasDesaDashboard = '/petugas-desa-dashboard';
|
||||
static const donaturDashboard = '/donatur-dashboard';
|
||||
}
|
||||
|
Reference in New Issue
Block a user