Questions tagged [flutter-image]

Anything that relates to handle images in Flutter, commonly the usage for Flutter Image component.

Image is a very important part of Flutter, it provides the ability to handle image display, encoding/decoding, and processing.

286 questions
2
votes
2 answers

How to apply Ink.image() on CachedNetworkImage()?

I want my image to have inkwell effect when tapped, previously I could do that with Ink.image widget and then Provide NetworkImage() as image attribute like this: Ink.image( fit: BoxFit.fitWidth, image: NetworkImage( product.imageUrl, …
Mateen Kiani
  • 2,869
  • 2
  • 19
  • 29
2
votes
3 answers

onError method of DecorationImage() in Flutter

Code works fine but because of my unreliable internet connection I am faced with an issue of NetworkImage.load ( See error image below ) Container( width: 60, height: 80, decoration: BoxDecoration( color: Colors.black12, borderRadius:…
Abhin Krishna KA
  • 745
  • 8
  • 13
2
votes
1 answer

How can I draw a pattern inside a path on a canvas in Flutter?

I want to draw crossing diagonal lines inside a path on a canvas in Flutter. Right now I've sort of got it working by loading an image asset into a ui.Image and then using a CustomPainter with an ImageShader to draw it on the canvas. It works, but…
Magnus
  • 17,157
  • 19
  • 104
  • 189
2
votes
1 answer

Image.path Error when Cancelling Image Picker from Gallery/Camera

I have a feature wherein I edit my Image using Gallery or Camera options. I don't know how to handle when the user pressed the back button while trying to pick from gallery to switch to camera. The debugger then shows the Error that "Image.path was…
nerdy kid
  • 371
  • 1
  • 3
  • 14
2
votes
1 answer

How to save a image from image picker in flutter in two different size

I am working in a code to pick a image using device camera and store in a variable. I worked with saving the original photo but in the same place i also need to save the photo but with small resolution so that i can use it as thumbnail. I need to…
Ankit Shah
  • 1,087
  • 2
  • 15
  • 30
2
votes
0 answers

Flutter: List out all the images stored on the device

I am creating a camera app where I am almost finished but there is just one thing missing from my arsenal... I want to list out all the images that is stored on the device inside a listview but I have no idea how to do this. My code is error free…
2
votes
1 answer

Show Local Images and Server Images ( with Caching) in Flutter

I am trying to show the image in a Widget picked from Image-Gallery as well as from the Network loaded images. CachedNetworkImage is working fine with Network-images but when I try to pass selected image from gallery it's not working.…
user532445
  • 723
  • 2
  • 13
  • 28
2
votes
2 answers

How to load Image widgets from ByteData in Flutter

The multi_image_picker: 2.4.11 plugin returns a List, each Asset having an imageData property that is a ByteData. How can I show these in Flutter?
Dan Field
  • 20,885
  • 5
  • 55
  • 71
2
votes
2 answers

Image not loading in Flutter

Trying to load image in flutter but not able to do that, getting following error I/flutter ( 3214): ══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════ I/flutter ( 3214): The following assertion…
mdDroid
  • 3,135
  • 2
  • 22
  • 34
1
vote
1 answer

display image in flutter app by fetching its name from server and load image from asset folder

I've only started programming with Flutter for a while, but I still have a lot to learn. Now I wrote a small program with Flutter that shows the customer's shopping list This program obtains the title of the payment gateway from the server…
reza kia
  • 155
  • 9
1
vote
0 answers

flutter : The input tensor should have dimensions 1 x height x width x 3. Got 1 x 3 x 416 x 416

I'm trying to run custom tflite model in my mobile app with the help of google_mlkit_image_labeling package, but I got this error : The input tensor should have dimensions 1 x height x width x 3. Got 1 x 3 x 416 x 416., null) Future
RAITON
  • 325
  • 2
  • 13
1
vote
0 answers

Flutter I can not update the profile picture

I am trying to built a profile picture and also using a firestore. I can not update the selected profile picture on the screen I need to hot refresh for it. The question is how can I update it and display it on the screen when the user select…
1
vote
0 answers

Flutter - select and image from device gallery or take a picture from camera

I'm implementing a screen to upload an image to my server. I'm looking to create a screen that looks something like this: Image pick screen wireframe The idea is that you are able to either select an image from your gallery (just one at a time) or…
1
vote
0 answers

can't able to load the networkimage and data from api - flutter

I got this error from image.dart while run the app. the error hit on this line : throw error; (inside the assert) And i got this error message on my console Image provider: NetworkImage("", scale: 1.0) Image key: NetworkImage("", scale:…
1
vote
2 answers

Chnage Shape of Image in Flutter

Hope everyone doing well. I am new in flutter I want to know how to give shape of an image like this, I have attached the sample... The image is coming from database