cunning_document_scanner
3.1.0, released 12 days ago by victorcarreras.dev
Scan paper documents and convert them to images or PDFs with auto-cropping.
What it does
A Flutter plugin that opens the device camera or gallery to scan physical documents. It automatically handles edge detection, cropping, and can export results directly to PDF or image files on both Android and iOS.
AI-written summary of version 3.0.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to allow users to scan physical documents using their device camera.
- You require automatic edge detection and document cropping on Android and iOS.
- You need direct PDF export from scanned images.
Skip it when
- You need a custom inline camera viewfinder widget embedded directly inside your widget tree.
- You require advanced on-device OCR text extraction and processing beyond basic scanning.
Strengths
- Supports automatic edge detection and cropping via native ML Kit and Vision.
- Can export directly to a single PDF document.
- Works on both Android and iOS with minimal setup.
Weaknesses
- Requires platform-specific configuration for permissions (camera access).
- Native UI screens are handled by the platform or system libraries and have limited customizability.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Requires setting minimum Android SDK to 24, adding camera permission to AndroidManifest.xml, and adding NSCameraUsageDescription to iOS Info.plist.
final imagesPath = await CunningDocumentScanner.getPictures();Alternatives
Packages that do the same job and could replace cunning_document_scanner.
- google_mlkit_document_scanner
If you want to use Google ML Kit's official document scanner directly without extra wrappers.
92Compare - camera
If you need a fully customizable custom camera preview and UI embedded inside your widget tree.
95Compare