kelola penyewa dan beberapa error fix

This commit is contained in:
Andreas Malvino
2025-07-09 16:01:10 +07:00
parent 0423c2fdf9
commit 47766bbdda
90 changed files with 2705 additions and 1555 deletions

View File

@ -14,6 +14,19 @@ class WargaDashboardView extends GetView<WargaDashboardController> {
Widget build(BuildContext context) {
final size = MediaQuery.of(context).size;
// Check if coming from login and trigger refresh
WidgetsBinding.instance.addPostFrameCallback((_) {
final args = Get.arguments;
final bool isFromLogin = args != null && args['from_login'] == true;
if (isFromLogin) {
// Trigger refresh after UI is built
controller.refreshData();
print(
'WargaDashboardView: Auto-refreshed data due to login navigation',
);
}
});
return WillPopScope(
onWillPop: () async => false, // Prevent back navigation
child: WargaLayout(