Update: 2026-05-07 00:14:28

This commit is contained in:
Hamza-Ayed
2026-05-07 00:14:29 +03:00
parent dd364fc918
commit 2449e44cb0
5 changed files with 276 additions and 13 deletions

View File

@@ -138,7 +138,8 @@ class ScannerView extends GetView<ScannerController> {
: ElevatedButton.icon(
onPressed: controller.isProcessing.value
? null
: () => controller.uploadBatch(),
// TODO: Get actual company_id from user selection
: () => controller.uploadBatch('mock_company_id_123'),
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFF0F4C81),
padding: const EdgeInsets.symmetric(vertical: 16),
@@ -146,11 +147,15 @@ class ScannerView extends GetView<ScannerController> {
borderRadius: BorderRadius.circular(30)),
),
icon: controller.isProcessing.value
? const SizedBox(
? SizedBox(
width: 20,
height: 20,
child: CircularProgressIndicator(
color: Colors.white, strokeWidth: 2))
value: controller.uploadProgress.value > 0
? controller.uploadProgress.value
: null,
color: Colors.white,
strokeWidth: 2))
: const Icon(Icons.cloud_upload, color: Colors.white),
label: Text(
'رفع ${controller.capturedImages.length} فواتير',