ScanCraft is a comprehensive, production-grade mobile document scanner, PDF utility, and productivity suite built with Flutter and Google ML Kit. It delivers CamScanner Pro features: auto edge detection, perspective correction, image filters, dual-sided ID Card merging, intelligent high-accuracy OCR, digital signatures, AES-128 PDF password protection, PDF compression presets, multi-document merging, built-in QR/Barcode scanner, and biometric app lock.
- Auto Edge Detection: Real-time boundary recognition detects documents instantly on any surface.
- Perspective Dewarping: Converts tilted/angled photos into flat, deskewed rectangular scans.
- Magic Filters: High-contrast color enhancement, B&W photocopy filter, and shadow removal.
- Batch Scanning: Scan up to 20 pages seamlessly in a single workflow.
- Specialized dual-sided capture workflow for National ID Cards, Driver's Licenses, and Student IDs.
- Automatically aligns and composites both Front and Back sides onto a single standard A4 printable sheet.
- Smooth in-app signature drawing pad with customizable ink colors (Black, Navy Blue, Emerald Green, Crimson Red).
- One-tap stamping and permanent burning of transparent signatures onto any document page.
- Pre-processed computer vision pipeline (Grayscale normalization + Contrast boost) feeding Google ML Kit text models for 99% character accuracy.
- 100% offline and private.
- Copy text, share instantly, or export as
.txt.
- Lock sensitive documents with AES-128 user & owner passwords.
- Add custom diagonal watermarks (e.g., "CONFIDENTIAL", "ORIGINAL").
- Choose from 3 compression presets before export:
- Standard (Recommended): Reduces file size by ~65% while keeping text crystal clear.
- Compact: Ultra-compressed for instant WhatsApp and email sharing (~85% smaller).
- Original: Full-resolution HD archive quality.
- Select 2 or more scanned documents with checkboxes and merge all pages into a single unified master document.
- Scan any QR code or barcode from camera or gallery.
- Direct URL launching, text copying, and saving decoded results as document notes.
- Protect confidential scans with device Fingerprint or Face ID authentication via Android BiometricPrompt.
| Technology | Purpose |
|---|---|
| Flutter & Dart | Cross-platform framework for fast, native UI performance |
| Google ML Kit Document Scanner | Machine learning document boundary detection and auto-crop |
| Google ML Kit Text Recognition | On-device OCR text extraction engine |
| Google ML Kit Barcode Scanning | High-speed QR code and 1D/2D barcode reader |
| PDF & Printing | Multi-page PDF generation, AES-128 encryption & watermarking |
| Signature | Custom drawing canvas for digitizing signatures |
| Local Auth | Android BiometricPrompt fingerprint and face security |
| Image | Pixel-level canvas composition, resizing, and contrast pre-processing |
| Shared Preferences | Local persistence for metadata, documents, and settings |
scancraft/
├── android/ # Native Android configuration, biometric permissions
├── lib/
│ ├── models/
│ │ └── scanned_document.dart # Document data model & JSON serialization
│ ├── screens/
│ │ ├── home_screen.dart # Dashboard, search, tags, multi-select merge & app lock
│ │ ├── document_detail_screen.dart # Multi-page viewer, rotation, PDF options & E-Sign
│ │ ├── id_card_scanner_screen.dart # 2-sided ID Card merger onto A4 canvas
│ │ ├── signature_screen.dart # Digital signature canvas & ink picker
│ │ ├── qr_scanner_screen.dart # QR code & Barcode scanner tool
│ │ └── ocr_result_screen.dart # OCR text viewer, editor & .txt exporter
│ ├── services/
│ │ ├── scanner_service.dart # ML Kit Document Scanner wrapper
│ │ ├── pdf_service.dart # Multi-page PDF, encryption & compression presets
│ │ ├── ocr_service.dart # Image pre-processing & text extraction engine
│ │ ├── barcode_service.dart # Barcode & QR code detection engine
│ │ ├── security_service.dart # Biometric authentication & app lock manager
│ │ └── storage_service.dart # Local JSON persistence CRUD
│ ├── theme/
│ │ └── app_theme.dart # Teal/Emerald CamScanner design system
│ ├── widgets/
│ │ └── document_card.dart # Thumbnail card with badges & context actions
│ └── main.dart # App entry point
└── pubspec.yaml # Project dependencies
- Flutter SDK (>= 3.0.0)
- Android Studio or VS Code with Flutter extension
- Android device or emulator (Android 5.0+, API 21+)
# Clone the repository
git clone https://github.com/srkamd/scancraft.git
cd scancraft
# Install dependencies
flutter pub get
# Run on device
flutter run
# Build Release APK
flutter build apk --releaseThe generated APK will be located at: build/app/outputs/flutter-apk/app-release.apk
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ using Flutter & Google ML Kit