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
0 answers

Flutter Blob to Image

I have to fetch the image from a private server and have to display it. I am using the flutter Dio library for API Integrations. here I I call to API: Future getFileRequest(GetFileRequest getFileRequest) async { try { …
Akila Ishan
  • 147
  • 2
  • 12
1
vote
0 answers

My images do not want to render in my flutter app. one of the images in my assets file renders but the others refuse to

The 'trucks' image renders in all the image widgets but none of the other pictures want to render in any of the image widgets.
1
vote
1 answer

Grid view image View difference Problem in Flutter?

I am showing images on gridview but i have a problem. I want to make the image's height and width equal. This is the picture and I want to make image on the right to the have same width and height like the left one.Or at least put a white cover to…
cvsrt
  • 357
  • 4
  • 19
1
vote
1 answer

Difference between image and video in XFile

This is my method for taking a picture: handleTakePhoto() async { Navigator.pop(context); XFile? file = await ImagePicker() .pickImage(source: ImageSource.camera, maxWidth: 960, maxHeight: 675); setState(() { this.file = file; bytes =…
1
vote
1 answer

How to change image size

When the image is moved to the orange container, I want the image to grow to fit the size of the container. However, when moving the image now, the size does not change and remains the same. Please help the image to be changed I have tried several…
user17238293
1
vote
1 answer

Image upload using post method in Flutter

I have to upload image from gallery to server using provider in Flutter. Here is the file picker _loadPicker(ImageSource source) async { File picked = await ImagePicker.pickImage(source: ImageSource.gallery); print(picked); if (picked !=…
Aravind B
  • 87
  • 1
  • 3
1
vote
0 answers

Unhandled Exception: type '_File' is not a subtype of type 'File' error in flutter

I'm making a feature to let user choose and upload their images on my platform. Here is the code of the choosing part. However, I got the error like the title because the running type of chosen Image is '_File' instead of File. The function…
Hoangdz
  • 152
  • 1
  • 14
1
vote
3 answers

Blue Circle is displayed in CircleAvatar Asset image instead of real image in flutter

I am trying to display the image in the Card widget in leading CircleAvatar below is my code child: Card( child: ListTile( onTap: () {}, title: Text(locations[index].location.toString()), leading:…
Ahmad Raza
  • 758
  • 7
  • 26
1
vote
2 answers

lateinitializationerror field imageFile has not been initialized

I am trying to upload an image from the gallery in flutter web project. However when I click on the upload button, I get an error "======== Exception caught by widgets library ===============================================LateInitializationError:…
Emmon
  • 377
  • 1
  • 9
  • 24
1
vote
1 answer

How to place image Placeholder using Image.network() in flutter?

I want a fade in image with a placeholder. After searching through internet I came across FadeInImage.memoryNetwork() and it is working fine as I wanted, but now I also need to call a function when the image is loaded successfully from network,…
Abhishek Kumar
  • 191
  • 1
  • 11
1
vote
1 answer

Image not updating on changing path read from a JSON file

I was trying to create an app using the flutter desktop implementation that would read the path to an image from a JSON file and display the image, and then when an Inkwell is hovered, it would change the path to another image. The following was the…
RikSantra
  • 81
  • 1
  • 10
1
vote
0 answers

How to overlap sticker on image and download the image in Flutter

I want to add the sticker, emojis, audio and text to the image. after that download or save the updated image file. I have checked the "flutter_simple_sticker_view" plugin for add sticker but the problem is image and sticker list are parallel…
1
vote
2 answers

Flutter "Unable to load asset" error, although everything looks good

So I got the "Unable to load asset" error on an image, although everything looks good to me, tried running flutter clean in the terminal but it didn't fix the issue. Any suggestions? PS: adding the file extension in the widget doesn't solve the…
1
vote
1 answer

Convert landscape image to potrait (rotating the image) and save - Flutter

I have an image that is in landscape mode. This is the image. Now I need to convert it to portrait. i.e it should be like this. And the image should be saved in the app directory. (saving part I know.just to complete the question) How can I do…
Sravan Kumar
  • 602
  • 8
  • 22
1
vote
0 answers

How to display a sql blob image in Flutter?

I am currently developing an application for which I need to display images that are stored as BLOB in a MySQL database. My API returns me the blob image like this…
Martin S.
  • 21
  • 7