|
|
|
@ -371,9 +371,9 @@ class SwipeGeneralUtils {
|
|
|
|
Future<void> performQrCodeAttendance({double? latitude, double? longitude, required BuildContext context}) async {
|
|
|
|
Future<void> performQrCodeAttendance({double? latitude, double? longitude, required BuildContext context}) async {
|
|
|
|
UserProvider userProvider = Provider.of<UserProvider>(context, listen: false);
|
|
|
|
UserProvider userProvider = Provider.of<UserProvider>(context, listen: false);
|
|
|
|
|
|
|
|
|
|
|
|
String qrCodeValue = await Navigator.of(context).push(
|
|
|
|
String? qrCodeValue = await Navigator.of(context).push(
|
|
|
|
MaterialPageRoute(builder: (_) => const ScanQr()),
|
|
|
|
MaterialPageRoute(builder: (_) => const ScanQr()),
|
|
|
|
) as String;
|
|
|
|
) as String?;
|
|
|
|
|
|
|
|
|
|
|
|
if (qrCodeValue != null) {
|
|
|
|
if (qrCodeValue != null) {
|
|
|
|
showLoading(context);
|
|
|
|
showLoading(context);
|
|
|
|
|