Questions tagged [imagepicker]

462 questions
4
votes
0 answers

How to crop XFile image if i have the coordinate that should be cropped (right,top,left,bottom)?

I'm using google-mlkit-object-detection where the detector detects for me many objects in an image and return for me RECT with the coordinate that detects so how can i crop these. ? as image
Flutter Dev
  • 488
  • 3
  • 18
4
votes
0 answers

ImagePicker: Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)"

I'm new to this but, I'm getting this error at the Image Picker and I'm stuck: Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)" PHPhotoLibrary.requestAuthorization gives me "authorized", so it seems no permission problem…
ldo1985
  • 115
  • 6
4
votes
2 answers

Flutter: Image Picker Package. Limiting to only JPEG, JPG, & PNG Files to be Selectable

I'm thinking about using the image picker package for my app. The thing is that I only want the user to be allowed to select images that are of type JPEG, JPG, or PNG. Is there a way to go about doing this? Thank You.
Patttt
  • 51
  • 1
  • 3
4
votes
5 answers

type 'Image' is not a subtype of type 'ImageProvider' in type cast
I'm using the image picker in flutter and trying to get the image. Before I select the image it appear like this: Before Upload Image After Upload Image here is the code: backgroundImage: _pickedImage != null ? Image.file(_pickedImage!)…
kiku
  • 147
  • 1
  • 10
4
votes
0 answers

image_picker problem: unsupported file format 'public.heic'

I'm using image_picker library to pick image from gallery. But I'm getting the following error: findWriterForTypeAndAlternateType:119: unsupported file format 'public.heic' My simple code: onTap: () async { final ImagePicker _picker =…
onrgns
  • 61
  • 4
4
votes
2 answers

Is there a way to get the original name of a image file using the Expo Image Picker?

I'm using the Image Picker in a react-native project and I need to show the original name of the image file on the screen... I've read the documentation and I found nothing about that, can someone help me with that? P.S: I'm using the latest version…
4
votes
2 answers

ImagePicker.platform shows warning - Flutter

I am using the following code to pick an image from user's gallery. Future getImageFromGallery(BuildContext context) async { await ImagePicker.platform() .pickImage(source: ImageSource.gallery) .then((image) { if (image !=…
pratik97179
  • 133
  • 1
  • 2
  • 12
4
votes
0 answers

Not able to Open Camera from emulator in Android 30 in flutter

I am using image picker to capture image and was testing on emulator with SDK 30. I is always throwing exception no camera available and is working perfectly in real device. manifest file
4
votes
5 answers

Flutter Image_Picker doesn't pick image from gallery and return to app

Here is a what's happening : I'm trying to upload an image from gallery to my app on iOS simulator. Image Picker opens the gallery but can't select an image and return to app. Here's my simple code: File _image; final picker = ImagePicker(); …
user14953411
4
votes
1 answer

image_picker crash in android app - Flutter App

First of all, I tried this answer but the issue still going, and I tried it on the new emulator, on a real device but I couldn't fix it. And it works on IOS successfully. Okay let's look issue: First step is working, so going to the gallery I am…
4
votes
1 answer

attribute android:requestLegacyExternalStorage not found flutter imagepicker

I am a beginner in Flutter. I was just trying to add ImagePicker in a simple example, but when I try to add in dependencies and android:requestLegacyExternalStorage="true". attribute android:requestLegacyExternalStorage not found. error occurs. I…
Mahi
  • 1,297
  • 1
  • 14
  • 28
4
votes
1 answer

Flutter Image Picker plugin assigns its own name to each picked file

I'm using the image picker plugin for flutter. Whenever I pick an image from the gallery, it is assigned a random name by the plugin, starting with 'image_picker.' How can I get the original name of the image file?
Zaeem
  • 215
  • 1
  • 2
  • 6
4
votes
1 answer

Image_picker throws removeInvalidNode all the node in jank list is out of time instead of returning image

I am trying to choose image with gallery or camera and display with image_picker. When I run the app in android, I am able to choose image but not displaying. In contrast I am getting following in the console for the first…
Colombo Homes
  • 41
  • 1
  • 4
4
votes
1 answer

Bug with image picker with flutter on ImageSource.Gallery

Info: Package: image_picker plugin for flutter, version 0.6.3+1 Android build only, no IOS Problem: This is my method to pick an image: Future pickImage(ImageSource source) async { File selected = await ImagePicker.pickImage(source:…
SimonartM
  • 668
  • 2
  • 11
  • 26
4
votes
0 answers

How to mock ImagePicker

I use this package: image picker Now, I have this line of code: File image = await ImagePicker.pickImage(source: ImageSource.camera); that I would like to mock in my test, but I can't find a way to do it.
Little Monkey
  • 5,395
  • 14
  • 45
  • 83
1
2
3
30 31