Questions tagged [flutter-image-picker]

75 questions
1
vote
2 answers

Image cropper not working in GetxController

The following is the code i was trying to implement in. The future method pickImage i guess it is the one having the problem. I am extending the class with GetxController. The method is expected to pick and crop the selected image using the image…
1
vote
1 answer

Getting image from another function - Flutter

I do have two functions and these are selectFile() and uploadProduct(). The selectFile contains the Image_Picker and Image_Cropper. and now I need to get the path and file from selectFile in my uploadProduct() to upload it on my Firebase Storage and…
1
vote
1 answer

Build error after adding image_picker 0.8.6 dependency in flutter ios project

After adding image_picker 0.8.6 into my pubspec.yaml file i get this error in my terminal and then it fails to run, here are images of the error and my info.plist fileBuild error 1Build error 2[info.plist file 1] info.plist 2 I edited my info.plist…
1
vote
2 answers

How can I save a image upload via gallery/camera permanently in my application?

I am trying to save image upload from the camera or gallery permanently, I am using the image_picker package, and each time I choose a picture for a pfp and click on a different tab it's gone, it only saves it temporarily. this is my code…
1
vote
0 answers

flutter image_picker stops showing permissions dialog

Is there a way to force image_picker to always show permissions dialog? Currently, after denying permissions, it stops showing it.
jakub
  • 3,576
  • 3
  • 29
  • 55
1
vote
0 answers

flutter app restart when pick image from camera in chrome (mobile browser)

I'm using image_picker pub_link for capturing images from the camera. sometimes my app restarts while capturing images from the camera. this happens randomly not always. also when I run on an android device it works fine only on mobile web browser…
Rahul Singh
  • 168
  • 2
  • 6
0
votes
0 answers

How to display the profile image that selected permanently instead of it return back the default image every time reload?

I currently work on the profile image page and I try to change the profile picture and store into Firebase Storage and Firebase Firestore. However, each time after I select the image and click save although the image details is saved into Firebase…
I Can Done
  • 31
  • 4
0
votes
1 answer

takePicture method not working in flutter

Creating an application for face detection. using camera plugin to capture picture. Below is the code to capture image on clicking button. I want to capture image and convert it into InputImage format. And do the navigation. Code for converting is…
0
votes
2 answers

How to request the user to access the storage of phone?

I try to code some gallery picker function from Youtube but I want to ask for permission for storage to user ,when I code below code, I get into the app info why I get there and how to fix it import…
0
votes
0 answers

How to edit the profile image and store the changes permanently? When changes the profile image, store it in Firebase Firestore at the same time?

I still new in learning flutter. Currently, I am trying to create the profile page but I encountered some issues with saving the selected image that chosen from the image picker. How can I save the changes of profile image permanently after I choose…
I Can Done
  • 31
  • 4
0
votes
1 answer

E/flutter (21267): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Instance of 'CompressError'

I'm trying to compress a picture with Flutter and know the original and compressed sizes. But I am getting an error. Kindly look at the compressImage() function: Future _compressImage() async { if (_image == null) { return; } …
0
votes
1 answer

Image picker in web doesn't work on deploy?

I have set up image picker and it works perfectly in localhost but not at all once deployed to web. I've looked at the web implementation and I think I have done it as it says there but it still doesn't work so I don't know if I missed something? My…
0
votes
1 answer

How can I display an image from Image_picker and dart:io?

I'm currently working on a program where the user would be able to select an image to analyze the text in the image and keep getting the following error while trying to get display the selected image in the following code-block: InkWell( …
Jana
  • 1
  • 1
0
votes
2 answers

Mocking ImagePicker in flutter integration_tests not working

I have tried Flutter Image Picker integration tests and How to test ImagePicker in Flutter Driver?. I am using ImagePicker plugin as below: final result = await ImagePicker().getImage(source: ImageSource.gallery); I have tried above solution, still…
Vishnu
  • 2,135
  • 2
  • 30
  • 51
0
votes
1 answer

Pass user selected photo to other pages within the app - Flutter

I am new to Flutter and need some assistance. I am using the ImagePicker to allow the user to select the image they want to use for a specific event (on the "Add New Event Page"), however, I don't know how to pass that selected image to other pages…
Jeff Barra
  • 23
  • 5