Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The gallery icon never gone on iOS #138

Open
Nico3652 opened this issue Jul 9, 2023 · 0 comments
Open

The gallery icon never gone on iOS #138

Nico3652 opened this issue Jul 9, 2023 · 0 comments

Comments

@Nico3652
Copy link

Nico3652 commented Jul 9, 2023

Thanks for the package.

on iOS after taking picture and copping the image, the gallery icon is still visible and also above the rotate button :

IMG_7867

IMG_7866

I know I can use the canUseGallery: false param for workaround but I also need gallery access for my users in the first step.

final success =
                      await PermissionManager.requestCamera(request: true);

                  if (success) {
                    try {
                      file = await MediaManager().generateLocalPath();
                      if(file != null) {
                        //Make sure to await the call to detectEdge.
                        bool success = await EdgeDetection.detectEdge(
                          file!,
                          canUseGallery: true,
                          androidScanTitle: 'Scanner',
                          // use custom localizations for android
                          androidCropTitle: 'Couper',
                          androidCropBlackWhiteTitle: 'Noir Blanc',
                          androidCropReset: 'Recommencer',
                        );

                        if (success) {
                          if (file != null && File(file!).existsSync()) {
                            pushCreateDoc(file!);
                          }
                        }
                      }
                    } catch (e) {
                      print(e);
                    }
                  }

Is this a bug or is there a way to gone the icon after taking the shot ?
Thanks

VERSION : edge_detection: ^1.1.2
(Not able to test this on android yet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant