Perbarui model PenitipanBantuan untuk menggunakan stok_bantuan sebagai kategori bantuan. Tambahkan rute baru untuk Donatur dengan beberapa halaman terkait, termasuk donaturDashboard, donaturSkema, donaturJadwal, donaturPenitipan, dan donaturLaporan. Modifikasi rute dan tampilan untuk meningkatkan navigasi dan pengalaman pengguna.

This commit is contained in:
Khafidh Fuadi
2025-03-26 08:33:55 +07:00
parent e881b2e37f
commit 88bef1c8e1
17 changed files with 4233 additions and 53 deletions

View File

@ -36,6 +36,8 @@ import 'package:penyaluran_app/app/modules/laporan_penyaluran/views/laporan_peny
import 'package:penyaluran_app/app/modules/laporan_penyaluran/views/laporan_penyaluran_create_view.dart';
import 'package:penyaluran_app/app/modules/laporan_penyaluran/views/laporan_penyaluran_edit_view.dart';
import 'package:penyaluran_app/app/modules/laporan_penyaluran/bindings/laporan_penyaluran_binding.dart';
import 'package:penyaluran_app/app/modules/donatur/views/donatur_view.dart';
import 'package:penyaluran_app/app/modules/donatur/controllers/donatur_dashboard_controller.dart';
part 'app_routes.dart';
@ -159,17 +161,17 @@ class AppPages {
binding: LaporanPenyaluranBinding(),
),
GetPage(
name: _Paths.laporanPenyaluran + '/detail',
name: '${_Paths.laporanPenyaluran}/detail',
page: () => const LaporanPenyaluranDetailView(),
binding: LaporanPenyaluranBinding(),
),
GetPage(
name: _Paths.laporanPenyaluran + '/create',
name: '${_Paths.laporanPenyaluran}/create',
page: () => const LaporanPenyaluranCreateView(),
binding: LaporanPenyaluranBinding(),
),
GetPage(
name: _Paths.laporanPenyaluran + '/edit',
name: '${_Paths.laporanPenyaluran}/edit',
page: () => const LaporanPenyaluranEditView(),
binding: LaporanPenyaluranBinding(),
),
@ -186,5 +188,50 @@ class AppPages {
),
binding: PenyaluranBinding(),
),
GetPage(
name: Routes.donaturDashboard,
page: () => DonaturView(),
binding: DonaturBinding(),
),
GetPage(
name: _Paths.donaturSkema,
page: () {
final controller =
Get.find<DonaturDashboardController>(tag: 'donatur_dashboard');
controller.activeTabIndex.value = 1;
return DonaturView();
},
binding: DonaturBinding(),
),
GetPage(
name: _Paths.donaturJadwal,
page: () {
final controller =
Get.find<DonaturDashboardController>(tag: 'donatur_dashboard');
controller.activeTabIndex.value = 2;
return DonaturView();
},
binding: DonaturBinding(),
),
GetPage(
name: _Paths.donaturPenitipan,
page: () {
final controller =
Get.find<DonaturDashboardController>(tag: 'donatur_dashboard');
controller.activeTabIndex.value = 3;
return DonaturView();
},
binding: DonaturBinding(),
),
GetPage(
name: _Paths.donaturLaporan,
page: () {
final controller =
Get.find<DonaturDashboardController>(tag: 'donatur_dashboard');
controller.activeTabIndex.value = 4;
return DonaturView();
},
binding: DonaturBinding(),
),
];
}

View File

@ -11,6 +11,10 @@ abstract class Routes {
static const petugasVerifikasiDashboard = _Paths.petugasVerifikasiDashboard;
static const petugasDesaDashboard = _Paths.petugasDesaDashboard;
static const donaturDashboard = _Paths.donaturDashboard;
static const donaturSkema = _Paths.donaturSkema;
static const donaturJadwal = _Paths.donaturJadwal;
static const donaturPenitipan = _Paths.donaturPenitipan;
static const donaturLaporan = _Paths.donaturLaporan;
static const splash = _Paths.splash;
static const permintaanPenjadwalan = _Paths.permintaanPenjadwalan;
static const daftarPenerima = _Paths.daftarPenerima;
@ -51,6 +55,10 @@ abstract class _Paths {
static const petugasVerifikasiDashboard = '/petugas-verifikasi-dashboard';
static const petugasDesaDashboard = '/petugas-desa-dashboard';
static const donaturDashboard = '/donatur-dashboard';
static const donaturSkema = '/donatur-skema';
static const donaturJadwal = '/donatur-jadwal';
static const donaturPenitipan = '/donatur-penitipan';
static const donaturLaporan = '/donatur-laporan';
static const splash = '/splash';
static const permintaanPenjadwalan = '/permintaan-penjadwalan';
static const daftarPenerima = '/daftar-penerima';