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 to true
Run flutter build apk and then flutter 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.
Screenshots
Expected behavior
Appear Gallery icon button to pick image from Gallery
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:
isGalleryImport
totrue
flutter build apk
and thenflutter install
to launch ML Kit Flutter example on real Android deviceScreenshots
Expected behavior Appear Gallery icon button to pick image from Gallery
Platform: