step 17 : proteksi presensi selfie button clock in & clock out
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
|
||||
import '../app/constant.dart';
|
||||
import '../app/route.dart';
|
||||
|
||||
class CustomDialogPresensiSukses extends HookConsumerWidget {
|
||||
final String messageStatus;
|
||||
final String isiPesan;
|
||||
final ValueNotifier<bool> isLoadingAddressUserLocation;
|
||||
|
||||
CustomDialogPresensiSukses({
|
||||
required this.isLoadingAddressUserLocation,
|
||||
required this.messageStatus,
|
||||
required this.isiPesan,
|
||||
});
|
||||
@@ -79,7 +84,10 @@ class CustomDialogPresensiSukses extends HookConsumerWidget {
|
||||
),
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop(); // Close the dialog
|
||||
Navigator.of(context).pushNamedAndRemoveUntil(
|
||||
homeRoute,
|
||||
(route) => false,
|
||||
);
|
||||
},
|
||||
style: ButtonStyle(
|
||||
backgroundColor: MaterialStateColor.resolveWith(
|
||||
|
||||
Reference in New Issue
Block a user