Update: 2026-05-07 01:47:01
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'dart:io';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
@@ -95,10 +96,24 @@ class ScannerController extends GetxController {
|
||||
);
|
||||
|
||||
if (batchId != null) {
|
||||
AppSnackbar.showSuccess('نجاح', 'تم رفع ${capturedImages.length} فواتير للمعالجة بنجاح');
|
||||
capturedImages.clear();
|
||||
uploadProgress.value = 0.0;
|
||||
Get.back(); // Go back to dashboard or previous screen
|
||||
|
||||
Get.defaultDialog(
|
||||
title: 'جاري المعالجة ⏳',
|
||||
middleText: 'تم استلام الفواتير بنجاح وسيتم إشعارك فور الانتهاء من تدقيقها عبر الذكاء الاصطناعي.',
|
||||
textConfirm: 'حسناً',
|
||||
confirmTextColor: Colors.white,
|
||||
buttonColor: const Color(0xFF0F4C81),
|
||||
onConfirm: () {
|
||||
if (Get.isDialogOpen ?? false) Get.back(); // close dialog
|
||||
Get.back(); // go back to dashboard
|
||||
},
|
||||
barrierDismissible: false,
|
||||
titleStyle: const TextStyle(fontFamily: 'El Messiri', fontWeight: FontWeight.bold, fontSize: 18),
|
||||
middleTextStyle: const TextStyle(fontFamily: 'El Messiri', fontSize: 14),
|
||||
radius: 12,
|
||||
);
|
||||
} else {
|
||||
AppSnackbar.showError('خطأ', 'فشل رفع الفواتير، يرجى المحاولة لاحقاً');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user