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
1
vote
1 answer

Flutter FadeInImage fails in Web using kTransparentImage

I am trying to implement FadeInImage like in the docs but my App fails with: Invalid argument: Unexpected end of image. Request for frame index 0 can't be satisfied. This is how my code looks like: FadeInImage.memoryNetwork( height: 200, …
Chris
  • 1,828
  • 6
  • 40
  • 108
1
vote
2 answers

how to change image opacity within Image() widget - flutter

So am trying to change image opacity using the opacity property i found in Image() widget, this is a short code to be clear : Padding( padding: EdgeInsets.all(10.0), child: Center( child: ClipRRect( …
editix
  • 322
  • 2
  • 14
1
vote
1 answer

Flutter widget to display dynamic array of pixel data

Is there any straightforward way in Flutter that I could display an image each frame whose pixel data is directly controlled by logic in the program? As an analogy, in Java, we have the BufferedImage whose pixel data can be directly manipulated by…
user2649681
  • 750
  • 1
  • 6
  • 23
1
vote
1 answer

Flutter Fallback Asset Image

I want a fallback asset image if the asset image I'm trying to access can't be loaded. If this code: Image(image: AssetImage('images/myImage.png')) throws an error, I would like to display a fallback, for example Image(image:…
Boothosh81
  • 387
  • 1
  • 5
  • 24
1
vote
1 answer

How to upload flutter image in folder with php?

I want to upload image in folder with API in php but i think flutter cannot send image as file type and php can't upload image in folder in server. Please help me hw can i upload image in folder here is my code :- import 'dart:convert'; import…
1
vote
3 answers

How to convert an Image instance to File instance in Flutter?

I am using VideoThumbanil class to fetch an Uint8List image of a video like this: final uint8List = await VideoThumbnail.thumbnailData(video: videoFile.path,); After doing so, i am converting the Uint8LIST to an Image using the following…
1
vote
1 answer

Flutter add Image Inside Canvas Circle

I put animated widgets that move from right to left on the home screen of my application. Here I drew circles using Canvas. I want to place images related to imageUrl inside these circles. Here, when I tried to place it with drawImage, the photos…
1
vote
2 answers

Converting base64 to image | Not working | Flutter

So, I want to do a simple thing but for some reasons it is not working. I get a base64 string from the server which I need to convert to an image. When I put that retrieved in the websites like base64guru, it works. However I'm unable to do the same…
Divyam Dhadwal
  • 395
  • 3
  • 19
1
vote
1 answer

Flutter web: The Image.memory makes the web page freeze for a period of time when uploading/downloading an image that has a big size

When a user uploads an image that has a big size, the application will freeze at the moment(Is the app calculating?). How to fix it to smooth. The Image.network has a leadingBuilder property but the Image.memory doesn't have this property. And…
1
vote
0 answers

image Error builders not working in Flutter

I am trying to make a list of network images. It was working until I reinstall flutter. This is code and I tried cachedNetworkImage, and all have the same error. ListTile( title: Text(MyNetowrk.currentChannels[index].name), leading:…
1
vote
1 answer

Flutter button to display image above it

Hello everyone I hope yall good. I want to know how to create a button and when it gets pressed display an image and a column or row. Please help me. **NOW THE IMAGE APPEARS AND DISAPPEARS WHEN THE BUTTON IS PRESSED. But it don't refreshes to get a…
1
vote
3 answers

Flutter Image.memory() loading animation with slow large files

I am fetching an image from the gallery and displaying it in my cropper with Image.memory(). But sometimes (with large files) it takes a few seconds for the image to show. I want to show a loading animation but how do I detect when it is loading or…
AntEdote
  • 318
  • 3
  • 8
1
vote
0 answers

Getting RGB data from Uint8List- images update, but rgb data doesn't | Flutter

Hy fellow Flutter lovers! Disclaimer: my code looks like a bomb site- that's because i'm relatively new to flutter. import 'dart:convert'; import 'dart:typed_data'; import 'package:async/async.dart'; import 'package:flutter/material.dart'; import…
1
vote
1 answer

Is there any way to create collage from some images and then set as wallpaper in flutter?

I am not interested how to set a wallpaper, because there are a lot of examples and documentation. Also for saving the wallpaper to the mobile gallery, or taking the photo paths from the gallery. I've already read about this. I am not finding a way…
Roland Iordache
  • 325
  • 4
  • 20
1
vote
0 answers

Can I add metadata while saving an image in flutter?

I want to add metadata ex: capture date, Latitude, longitude, etc to an image while saving it. Is it possible? If so, how to do it? Any suggestion would be a big help. Thanks.