weta-vn / advance_image_picker

Flutter plugin for selecting multiple images from the Android and iOS image library, taking new pictures with the camera, and edit them before using such as rotating, cropping, adding sticker/filters.
BSD 3-Clause "New" or "Revised" License
110 stars 49 forks source link

You need camera permission error in latest Android phones #54

Open nidhinchs opened 1 year ago

nidhinchs commented 1 year ago

After manually receive runtime permission i have open image picker but still it shows error that "You need allow camera permission" and can not click on request permission button.

abhinovpankaj commented 1 year ago

Looks like no one is actively maintaining the repo. We might have to move to another package perhaps. I am facing the same problem.

toprako commented 1 year ago

Hello,

I had the same problem. I solved the problem like this, I bypassed the permission section in the imagepicker.dart file. I wrote a code block where I asked for permission myself.

weta-vn commented 1 year ago

Thank you for sharing about problem. We apologize for the delay. We're so busy in some working projects for this month. After it finished, we'll investigate to resolve above problem.

machadoguilhermebr commented 10 months ago

Hello everyone, I come to bring a temporary solution to this issue.

you need to create a folder called "assets\advance_image_picker-masterUP"

put the contents of this zip in that folder

and in your pubspec.yaml

You must change your dependency to stay like this

  advance_image_picker:
    path: assets\advance_image_picker-masterUP

advance_image_picker-masterUP.zip

mkdirmatias commented 9 months ago

Add this in pubspec.yaml:

dependency_overrides:
  camera:

This will cause the latest version of the plugin to be used. camera which is the one that generates the conflict with Android 13 in older versions of the camera plugin (version used by advance_image_picker).