DocScan is an open-source Flutter app that lets you scan documents, recognize text, and edit it instantly using Google ML Kit Text Recognition.
You can take a photo of any document, extract its text, and edit or copy it — all within one simple and modern UI.
✅ Document Scanning – Capture clear document images using CameraX
✅ Text Recognition (OCR) – Extract text from scanned images with Google ML Kit
✅ Text Editing – Built-in editor to modify recognized text directly in the app
✅ Copy to Clipboard – Quickly copy recognized text for reuse anywhere
✅ Clean Material UI – Minimal, modern, and responsive Flutter design
✅ Offline Functionality – Works fully offline after installation
- Flutter (Dart)
- Google ML Kit (Text Recognition)
- CameraX
- Material Design Components
- Clipboard API for easy text copy
- Open the app and capture a document using your camera.
- The app automatically detects and extracts text using ML Kit OCR.
- View the recognized text on screen.
- Edit or copy the text easily.
lib/
│
├── main.dart
├── screens/
│ ├── onboarding_screen.dart
│ ├── text_recognizer_screen.dart
│ ├── editor_screen.dart
│
└── widgets/
└── custom_button.dart
git clone https://github.com/aamirali65/docscanner
cd docscan_flutterflutter pub getflutter run- Camera Permission – To scan and capture documents
- Storage Permission – To access images for text recognition
- Launch the app and capture or pick a document image.
- ML Kit automatically extracts all readable text from the image.
- View and edit the recognized text inside the built-in editor.
- Copy or save the text for later use.
I built DocScan to explore how on-device machine learning can be integrated with Flutter.
It’s a simple but powerful example of combining OCR, document scanning, and text editing in one seamless experience.
The goal was to create a tool that feels lightweight, works offline, and performs fast even on low-end devices.
This project is licensed under the MIT License.
You’re free to use, modify, and share it with proper attribution.