Questions tagged [flutter-image-picker]

75 questions
0
votes
0 answers

Flutter show Image picker when the image itself is clicked?

I am using the image_picker package and my code is as simple as : **The ImagePicker and the image itself : ** GestureDetector( onTap: () { getImage(); }, child: Container( child: pickedImagePath…
0
votes
1 answer

Flutter: ImagePicker from gallery won't pop up on web in iOS

I'm using the package image_picker on a flutter app to load a picture, and it works fine in the web when accessed by an Windows, MacOs, Android, but in the iOS (16.3) the pop up to choose the image won't show up. import…
Sade
  • 1
  • 2
0
votes
1 answer

Flutter Image form Image Picker to Document Path

I am creating an app that saves images locally through sqflite, I have soon found out that the images are being saved as temp which means that it will be deleted by the device and i'm not able to retrieve those images anymore. I have been coding to…
RalphIan
  • 3
  • 1
0
votes
0 answers

// Unhandled Exception: Null check operator used on a null value

When i click on camera icon in stack widget and also it is unable to update image it show this error ** [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value E/flutter (28471): #0 …
0
votes
1 answer

The argument type 'Object' can't be assigned to the parameter type 'ImageProvider
I want to show updated image but I get this error The argument type 'Object' can't be assigned to the parameter type 'ImageProvider?'. Please solve my error Here is my code File?_image; CircleAvatar( radius: 70, …
0
votes
1 answer

Flutter - Can anyone tell why I'm getting these errors?

I can run my app but I cant get any result , it's just showing the CircularProgressIndicator() for infinite time. I get these errors in my terminal: E/flutter (30223): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type…
Mou Biswas
  • 157
  • 2
  • 14
0
votes
0 answers

Error while uploading image onto Firebase Storage

I am trying to build a image picker using flutter. I want the user to be able to select an image and upload it onto firebase storage so that it can be later retrieved. I am using an image picker to select the image from the gallery and I am then…
0
votes
0 answers

Flutter Carousel framed by taking pictures in the moment

How can I display a Carousel framed by taking pictures in the moment? This carousel needs a function to remove photos if needed. And an indicator of what image I'm seeing. I'm using packages: 'image_picker' to get the photos from gallery or camera.…
0
votes
0 answers

App crash on image click in release build using image_picker flutter

My app got crashed on image click but working fine in debug mode. I got the following error in terminal E/AndroidRuntime(18185): java.lang.NoClassDefFoundError: Failed resolution of: Lj$/util/DesugarTimeZone; E/AndroidRuntime(18185): at…
Hassan Gujjar
  • 288
  • 3
  • 13
0
votes
0 answers

Flutter capture image causing crash

I am using image_picker 0.8.6+1 in my app for capturing camera image. When I capture image app suddenly crash without any exception. It's working fine on Android 13 Samsung. But it's causing a crash on Android 10 OPPO phone. I am unable to catch…
Mohammad Aamir
  • 471
  • 2
  • 5
  • 14
0
votes
1 answer

While picking an image from gallery, image_picker is crashing the the app on IOS with no logs in the console

Whenever I click on pick image from gallery using image_picker: ^0.8.6+1 plugin, it opens up the gallery and when I select any image, the app simply crashes with the following message in the console: "Lost connection to device." Here is the report…
0
votes
1 answer

how to validate Image size while picking/selecting the image in flutter?

Here's the code to pick up the image from the gallary. Future getImage() async { var image = await ImagePicker().getImage(source: ImageSource.gallery); getImageSize(); // imageQuality: 50; setState(() { selectedImage =…
0
votes
0 answers

Flutter Loads Image from XAMPP Server

@override Widget build(BuildContext context) { return Scaffold( body: ListView( children: [ HomeHeaderWidget(), // Home Widgets ada di HomeWidget.dart Container( height: 150, width: 240, alignment:…
0
votes
0 answers

Some images are automatically rotated when i picked with image picker in my flutter app

I use image_picker: ^0.8.4 in my flutter app.When i wan't to pick image from gallery some images are automatically rotated .How can i solve this problem? I try image_picker: ^0.8.5+3 and image_picker: ^0.8.6 packages.I want to pick image as it show…
rakib
  • 1
  • 1
0
votes
1 answer

How to display future image with image provider in flutter

I'm building edit screen where user can change Image. I would like user to display one of three images: - image from server - temporary image if previously not uploaded - new image to upload. Problem appear when I'm going to display image from…