Questions tagged [imagepicker]

462 questions
2
votes
1 answer

Flutter imagepicker.pickvideo return jpg

I'm using this to return the video file but I got .jpg Future getVideo() async { var video = await ImagePicker.pickVideo( source: ImageSource.gallery); return video; } I want to ImagePicker.pickVideo() return video…
sungchan
  • 79
  • 10
2
votes
1 answer

Flutter & Navigator & ImagePicker : Why can I proceed to the next page? Looking up a deactivated widget's ancestor is unsafe

This is my getImage Function. After I take a picture, I will crop it. then I go to the next page. It was working just fine. But today, I got an error. Why is that? I can't understand. Should I update my flutter or sth? getImage(ImageSource source,…
Punreach Rany
  • 2,560
  • 7
  • 23
  • 56
2
votes
1 answer

Flutter image picker won't show up in Android 10

I am a beginner in flutter. I was checking to use image_picker in flutter. But When I tried to check image_picker with my Andorid Phone (10) it won't show up. I don't know what happened, I have added android:requestLegacyExternalStorage="true" in…
Athira Reddy
  • 1,004
  • 14
  • 18
2
votes
0 answers

Flutter image_picker plugin crashes the app while selecting image from gallery (only on specific devices)

I have used image_picker latest version 0.6.7+4. Issue: image picker opens a gallery for selecting images but after scrolling through almost 100-500 images when i select an image the main.dart gets killed abruptly due to which in some devices the…
2
votes
1 answer

Image not be picked in iOS simulator

I am using the below code to get pick image in flutter application, when the code is run on Android it works fine, but when the same code is run on iOS it crashes the app while tapping the button to pick the image. How should I resolve it? ERROR I…
user13410550
2
votes
5 answers

How to upload multiple images to the Rest API in Flutter using HTTP?

I want to upload multiple images into the Rest API. I tried the below code to upload a single image to the rest API. That is working fine, for multiple image selection I'm using multi_image_picker link, how can I modified below code to upload…
FGH
  • 2,900
  • 6
  • 26
  • 59
2
votes
2 answers

Expo ImagePicker crashed on IOS Gallery not opening

When I try to use expo imagepicker, the application freezes, opens the gallery or the camera and they close immediately, this only happens to me on iOS, on Android it works perfectly. This is my code getPermissionAsync = async () => { if…
2
votes
2 answers

type 'String' is not a subtype of type 'File'

So far in my app everything is working except that one error I keep getting: type 'String' is not a subtype of type 'File' I tried many ways to try and fix the Issue but nothing has yet been resolved. I can understand where the issue is, but I'm…
user12227098
2
votes
1 answer

Flutter: How do i navigate to a new page after an image is picked with the ImagePicker plugin?

I'm using the Image Picker plugin to pick an image. I would like to navigate to a new screen immediately after an image is picked but it's not working. I'm getting an error that states that the context doesn't exist in the current widget tree. Below…
Tayo.dev
  • 1,546
  • 3
  • 21
  • 31
1
vote
1 answer

Image_picker failed to load images from gallery

everything is good but when i try to get picture from gallery using 3rd party program (es file explorer) image picker plugin get this error Unable to decode stream: java.lang.NullPointerException i tried again with many pictures ,and get the same…
1
vote
0 answers

Error in downloadBitmap - java.net.MalformedURLException: unknown protocol: content

I am updating my android app from version 29 to 31, but i am having issues with selecting photos from the gallery. Making a new picture with the camera works fine. Versions: "@nativescript/core": "^7.1.3", "@nativescript/imagepicker":…
1
vote
1 answer

Picture taken with camera does not contain location data but gallery images do when using image_picker

I have got an app which includes image_picker to allow the user to choose an image from their gallery or take a photo directly within the app. I need the photo to contain location data so I need the GPS GPSLatitude tag to be inside of the metadata…
1
vote
0 answers

ImagePicker return invalid image source

Im using ImagePicker to pick multiple image. On android just work fine. But iOS returning. PlatformException (PlatformException(invalid_source, Invalid image source. ImagePicker _picker = ImagePicker(); pickMultiImage() async { Size size =…
Soveyyy
  • 274
  • 4
  • 17
1
vote
1 answer

Passing image from one screen to another screen in flutter

on first screen ill upload image using camera and i have one button going to next screen. Here when the user clicks the button image should be sent to the second screen. below is the code- its a container which captures image and below that is a…