Tambahkan rute baru untuk modul Warga, termasuk WargaDashboard, WargaPenyaluran, dan WargaPengaduan. Perbarui referensi import di app_pages.dart dan app_routes.dart untuk mencerminkan perubahan ini, meningkatkan struktur dan navigasi aplikasi.

This commit is contained in:
Khafidh Fuadi
2025-03-16 17:20:18 +07:00
parent dfc6080e77
commit a3798f0005
15 changed files with 1587 additions and 48 deletions

View File

@ -20,6 +20,12 @@ import 'package:penyaluran_app/app/modules/profile/bindings/profile_binding.dart
import 'package:penyaluran_app/app/modules/profile/views/profile_view.dart';
import 'package:penyaluran_app/app/modules/splash/bindings/splash_binding.dart';
import 'package:penyaluran_app/app/modules/splash/views/splash_view.dart';
import 'package:penyaluran_app/app/modules/warga/bindings/warga_binding.dart';
import 'package:penyaluran_app/app/modules/warga/views/warga_dashboard_view.dart';
import 'package:penyaluran_app/app/modules/warga/views/warga_penyaluran_view.dart';
import 'package:penyaluran_app/app/modules/warga/views/warga_pengaduan_view.dart';
import 'package:penyaluran_app/app/modules/warga/views/warga_view.dart';
import 'package:penyaluran_app/app/modules/warga/controllers/warga_dashboard_controller.dart';
part 'app_routes.dart';
@ -39,6 +45,29 @@ class AppPages {
page: () => const LoginView(),
binding: AuthBinding(),
),
GetPage(
name: _Paths.wargaDashboard,
page: () => const WargaView(),
binding: WargaBinding(),
),
GetPage(
name: _Paths.wargaPenyaluran,
page: () {
final controller = Get.find<WargaDashboardController>();
controller.activeTabIndex.value = 1;
return const WargaView();
},
binding: WargaBinding(),
),
GetPage(
name: _Paths.wargaPengaduan,
page: () {
final controller = Get.find<WargaDashboardController>();
controller.activeTabIndex.value = 2;
return const WargaView();
},
binding: WargaBinding(),
),
GetPage(
name: _Paths.petugasDesaDashboard,
page: () => const PetugasDesaView(),

View File

@ -6,6 +6,8 @@ abstract class Routes {
static const login = _Paths.login;
static const register = _Paths.register;
static const wargaDashboard = _Paths.wargaDashboard;
static const wargaPenyaluran = _Paths.wargaPenyaluran;
static const wargaPengaduan = _Paths.wargaPengaduan;
static const petugasVerifikasiDashboard = _Paths.petugasVerifikasiDashboard;
static const petugasDesaDashboard = _Paths.petugasDesaDashboard;
static const donaturDashboard = _Paths.donaturDashboard;
@ -33,6 +35,8 @@ abstract class _Paths {
static const login = '/login';
static const register = '/register';
static const wargaDashboard = '/warga-dashboard';
static const wargaPenyaluran = '/warga-penyaluran';
static const wargaPengaduan = '/warga-pengaduan';
static const petugasVerifikasiDashboard = '/petugas-verifikasi-dashboard';
static const petugasDesaDashboard = '/petugas-desa-dashboard';
static const donaturDashboard = '/donatur-dashboard';