feat: update backend OCR parser, web app, mobile app camera/preview UI, tests, and documentation with sample images

This commit is contained in:
Rafhan Mazaya Fathurrahman committed 2026-07-02 13:33:57 +07:00
1 parent aa3233e411
commit bdb3a49742
71 files changed
+3360 -764

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:app_pfm_ocr_v2/features/camera/camera_screen.dart';
void main() {
testWidgets('CameraScreen renders basic UI elements with camera and gallery buttons', (WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: MaterialApp(
home: CameraScreen(),
),
),
);
// Verify Title exists
expect(find.text('OCR Document Scanner'), findsOneWidget);
// Verify main card header exists
expect(find.text('Pindai Dokumen DO'), findsOneWidget);
// Verify Camera button exists
expect(find.text('Ambil Foto Kamera'), findsOneWidget);
// Verify Gallery button exists
expect(find.text('Pilih Dari Galeri'), findsOneWidget);
});
}