Questions tagged [imagepicker]

462 questions
28
votes
5 answers

Flutter : PlatformException(no_available_camera, No cameras available for taking pictures., null, null)

guys! I am facing this camera version. It happened after I merged my projects. It says there is no camera available but back then it was running fine. Please have a look! E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception:…
Punreach Rany
  • 2,560
  • 7
  • 23
  • 56
14
votes
10 answers

PlatformException(multiple_request, Cancelled by a second request, null, null) in imagePicker

I am using a riverpod provider class to handle picking of image from gallery. However, once an image is picked, I get the error: PlatformException(multiple_request, Cancelled by a second request null, null). Not sure where a second request is coming…
Obisi7
  • 485
  • 1
  • 5
  • 18
14
votes
6 answers

Rename a file or image in Flutter

I am picking an image from gallery/taking a photo using the image_picker: ^0.6.2+3 package. File picture = await ImagePicker.pickImage( maxWidth: 800, imageQuality: 10, source: source, // source can be either ImageSource.camera or…
L Uttama
  • 379
  • 1
  • 4
  • 14
13
votes
3 answers

How to crop Image from image picker in flutter?

I want to allow the user to crop the Image he chose from the image picker and save it(Similar to uploading profile pic on Whatsapp). How can I do this in flutter? Sample Image:
Prasanth Kanna
  • 1,961
  • 4
  • 18
  • 25
10
votes
4 answers

flutter image picker not working and crashing app without error on debug

I'm currently using these versions: flutter : 2.16.0 image_picker : ^0.8.4+7 The image picker is not working. After running the app, when I click on the button to activate the pickImage function, running suddenly stops and the app crashes and stops.…
Mateus Neves
  • 674
  • 1
  • 6
  • 20
9
votes
1 answer

Flutter: 'Lost connection to device.' second time using image_picker to select photo from gallery on iOS

I am developing a mobile app in flutter that requires the user to select an image from the gallery. I am using image_picker: ^0.6.7+11 and here is my code: if (await Permission.photos.request().isGranted) { try { final image = …
goh
  • 91
  • 1
  • 2
8
votes
4 answers

In Flutter How to get image path after selecting images using Multi Image Picker?

I want to get an image path from selected multiple images, I'm using this link to select multiple images but I got assets, I want paths from selected multiple images because I want to upload into the API. I added this dependency in pubspec.yaml If…
Jonh
  • 123
  • 1
  • 1
  • 7
7
votes
9 answers

How to display picked image in a circle avatar in Flutter?

I have the following code which launches the image picker to select image from gallery. File _image; final picker = ImagePicker(); Future getImage() async { final pickedFile = await picker.getImage(source: ImageSource.gallery); …
S M Vaidhyanathan
  • 320
  • 1
  • 4
  • 13
6
votes
2 answers

A problem occurred configuring project ':flutter_plugin_android_lifecycle'

I added "image_picker: ^0.8.4+11" package to my project. After adding it was returning this error. What went wrong: A problem occurred configuring project ':flutter_plugin_android_lifecycle'. Could not resolve all artifacts for configuration…
6
votes
2 answers

Memory increase when pick image from gallery in example of flutter plugin image_picker

I run flutter's plugin image_picker's sample. When I pick image one by one from gallery, the memory keep increase. Ideally the memory should jump back since it at most select one image in this example app. class _MyHomePageState extends…
JerryZhou
  • 4,566
  • 3
  • 37
  • 60
5
votes
0 answers

What is causing this Flutter image_picker error

I remember having this issue once in the past but not how I fixed it. I have a fairly simple function to allow users to update their profile picture but it fails at the first step final XFile? image = await ImagePicker().pickImage(source:…
Globe
  • 514
  • 3
  • 17
5
votes
1 answer

How to get rid of "Allow Expo Go to modify this photo?" alert in Android

I'm developing react native expo application which takes photo using expo-image-picker and saves that image into a different location by using expo-media-library. Everything seems to be working fine but this pop up keeps getting every time user…
5
votes
2 answers

How to get Download URL from Firebase Storage in flutter

The Following Code is used to Upload any image from gallery/Camera to Firebase storage. I was successful in uploading the image to storage along with meta data. Now the problem is I am not able to get the download URL of the uploaded image. Tried a…
Jeevan Crasta
  • 103
  • 2
  • 10
5
votes
3 answers

Flutter: Picking images as jpg/png instead of heic on iOS

How can I pick images directly as jpg or png on iOS? If this feature isn't available: How can I convert it very fast and don't have to wait a long time? Edit: I want to prevent picking .heic because I have to send it to an server, which handles jpg…
st3ffb3
  • 398
  • 3
  • 15
5
votes
0 answers

Flutter image_picker not change language on camera

I expect the friends who use image_picker on Flutter to help with language. The language of the phone is Spanish, but when it enters the phone camera to take pictures, it looks English. I couldn't see a place where I could change the language. How…
Emre Karataş
  • 51
  • 2
  • 6
1
2 3
30 31