Questions tagged [flutter-image-picker]
75 questions
0
votes
1 answer
image_picker is not working after building flutter apps for Camera Image Picking
_getFromCamera() async {
XFile? pickedFile = await ImagePicker().pickImage(
source: ImageSource.camera,
maxWidth: 1800,
maxHeight: 1800,
);
}
It is working fine for
source: ImageSource.gallery,
but for camera, it is not…
0
votes
2 answers
I have problem with using condition to display an image
I am using image picker to get image from user then displayed in "CreateCard" UI.
The issue occur when i try using condition in my UI file, i need the condition so i can check if the file image is null before i can display it.
I am working with…

Mohammad Yazbeck
- 15
- 5
0
votes
1 answer
Display image from imagepicker and firestore flutter
i have a edit profile page that look like this
Above is where user pick their image and display picked image then immediately store them into firestore database. user click the background for choosing background image from imagepicker.
the thing…

Jessen Jie
- 167
- 1
- 12
0
votes
2 answers
Flutter, dart: what's the difference between these snippets of code?
Code snippet A is working, but not snippet B. I check variable "image"s data type with print(), both A and B's image (variable) has a datatype (XFile), not a Null. But B is still not working....
final XFile? image = await _picker.pickImage(source:…

John Han
- 31
- 6
0
votes
0 answers
How do I stop images from looping using Image Picker?
In a class I took he said pickedImages is looping, so I'm not sure if the problem is in uploadMultipleImages function where pickedImages is used or if the problem is in the function loadImages.
The functions are a bit beyond my understanding. What…

Leena Marie
- 187
- 3
- 22
0
votes
0 answers
Execution failed for task ':image_picker_android:verifyReleaseResources'
* What went wrong:
Execution failed for task ':image_picker_android:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
> Android resource linking failed
…

jhon
- 1
0
votes
1 answer
What does the error "type 'Future' is not a subtype of type 'XFile'" mean in Flutter?
I'm trying to convert an image or XFile from image_picker to an inputImage for a different library. The full error message is:
======== Exception caught by gesture ===============================================================
The following…

xhwou
- 3
- 2
0
votes
0 answers
How to pick files or Images from PC or Gallery using universal_io package for flutter web?
Is there any GraphDeveloper?...I am working on a project and got stuck on a problem that when i user dart:io package I open picker = ImagePicker(); images get displayed on web with uint8List inside the ListView.builder. But when i try to upload them…

Aqeel Mughal
- 2,105
- 2
- 6
- 14
0
votes
0 answers
uploading images server using graphql apis
i want to upload my images to the sever from flutter web, which is using graphql api. i am able to show the images on the web but unable to upload images to the server.
static Future multipartApi(File file)async {
…

Aqeel Mughal
- 2,105
- 2
- 6
- 14
0
votes
1 answer
how to add images in Listview.builder in flutter web
I am new to flutter. I want to add multiple images as well as single to flutter website which I am creating. I am unable to do that I watched many tutorials but nothing helped me out. that's why I came here.
This is the stuff i have done so…

Aqeel Mughal
- 2,105
- 2
- 6
- 14
0
votes
0 answers
How to show images upon app start in flutter?
My app, when opened, doesn't show images stored on the Hive DB. After I upload a new one, it shows up and keeps showing fine.
If the app gets close, it won't show it again until it gets uploaded again
I tried to use listenable, and setStates(), and…

Jacob Athias
- 67
- 1
- 6
0
votes
0 answers
How to resolve Lost Connection to Device (Flutter Image Picker)
I'm building an app that requires me to use the camera of the device. I have followed all the procedures to set it up via the Image Picker Documentation and I am still having issues.
Funny enough, it was working fine when I tested it last time but…

Akindele Michael
- 86
- 3
- 10
0
votes
1 answer
"On web `bytes` is required" exception thrown by image_picker plugin on Flutter web
My app is using the image_picker plugin to let the user upload a profile picture from his phone and on Android everything works as expected.
The problem is that when I try to run the same code on web, it throws me the following error:
Error:…

Leonardo Mantovani
- 141
- 1
- 12
0
votes
1 answer
The following _CastError was thrown building RawGestureDetector-[LabeledGlobalKey#0cfc0]
Hello I am trying to add picture to the APP by image picker But when I close the screen and open it again that message show to me
════════ Exception caught by widgets library ═══════════════════════════════════
The following _CastError was thrown…

Ibrahim Mahmoud
- 65
- 1
- 9