Scan document from Gallery in google_mlkit_document_scanner
loveoverflowdev opened this issue · 3 comments
Title
In google_mlkit_document_scanner, I failed to enable document scanning from Gallery Instead of Camera
Description
In the google_mlkit_document_scanner package, I need to scan documents from the gallery instead of using the camera. I have set the boolean isGalleryImport to true in the source code, which is based on the ML Kit example. However, there is no gallery icon button visible to press for importing images from the gallery.
To Reproduce
Steps to reproduce the behavior:
- Clone google_ml_kit_flutter from github repository
- cd to google_ml_kit_flutter/packages/example
- Edit packages/example/lib/vision_detector_views/document_scanner_view.dart: Change
isGalleryImport
totrue
- Run
flutter build apk
and thenflutter install
to launch ML Kit Flutter example on real Android device - See error: There is no gallery icon button to press for importing images from the gallery even after setting isGalleryImport to true.
Expected behavior
Appear Gallery icon button to pick image from Gallery
Platform:
- OS: Android
- Device: Samsung Galaxy A50
- OS: Android 11
- Flutter/Dart Version: Flutter 3.19.6 • channel stable
- Plugin version: google_mlkit_document_scanner 0.2.0
This is the result of a test I made.
This seems to be working on my end.
Every possibility is can be from the device itself @loveoverflowdev
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.