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

Flutter display image from a post API

I'm using a POST request (with a json body) to retrieve a png image (a qr code). How could I display such image? I checked with image.network but it seems it only handles GET request.
woshitom
  • 4,811
  • 8
  • 38
  • 62
1
vote
0 answers

Flutter image save get blurred in iOS

I have created a sample app that saves a container as an image using flutter. This works totally fine with the android device and the saved image is of good quality. However, when I check this in the iPhone (emulator and physical device) the saved…
Gihan
  • 53
  • 7
1
vote
3 answers

How to solve flutter "Infinity or NaN toInt" on some images

I have a simple project that should just display an image. I should mention that am very new to flutter. Below is the main.dart import 'package:flutter/material.dart'; import 'package:flutter_shoe/ColorHolder.dart'; import…
Martin Mbae
  • 1,108
  • 1
  • 16
  • 27
1
vote
0 answers

How do you download an image from the internet onto a file in Flutter?

I'm making a Flutter project where an image is displayed in listview and the user can share, favourite or download the image. I'm stuck on the downloading part. Is it possible to save an image file onto the phone's storage for offline use? What I…
1
vote
0 answers

BMP header for image stream Flutter

I was able to get video streaming by converting the uint8 data into bytes (code below), but it just looks like static. I think there's something wrong with my bitmap header (I think it is missing). Could someone please tell me if there is anything I…
codenstuff
  • 97
  • 1
  • 8
1
vote
0 answers

Flutter uint8 (bgr8) Raw Image Data Convert to Picture

I was able to get the video streaming, but it has a lot of static. I think there's something wrong with my bitmap header (I think it is missing). Could someone please tell me if there is anything I can include from the raw data I'm receiving for the…
codenstuff
  • 97
  • 1
  • 8
1
vote
3 answers

Flutter: image_picker fails when you run pub get

Here is my pubspec.yaml When I run pub get without image picker, it works. name: project1 description: A new Flutter application. publish_to: version: 1.0.0+1 environment: sdk: ">=2.7.0 <3.0.0" dependencies: flutter: sdk: flutter …
Jon
  • 23
  • 1
  • 5
1
vote
1 answer

Flutter Login Backround Image Flutter_login package

I have been trying to add a custom image as the background of my app, but I could not. How do I change the background image to whatever I want of the login page below, instead of having a color: import 'package:flutter/material.dart'; import…
randomUser786
  • 1,527
  • 3
  • 13
  • 25
1
vote
0 answers

Callback for Image.file completion

im showing image from local storage in my flutter app but it takes 1-2 sec to loadup. But there is no callback functionality when image is loaded. So how can i know the image is loaded or not as i have to disable a button untill image is fully…
jitendra purohit
  • 652
  • 5
  • 18
1
vote
3 answers

Image not showing in Flutter on pdf creation

I have a problem where image from asset is not rendered in the screen when generating a pdf. I have pdf and printing package install. The printing package is used to load image from my image folder. Here is my code final pdf = pw.Document(deflate:…
Amir
  • 411
  • 7
  • 11
1
vote
2 answers

Flutter how to change image after onTap with Gesture Detector

I have a Image inside a GestureDetector widget. I want to change this image when onTapDown is called, and then change it again when onTapUp is called. Is there possible to do that? In other app (Native Android app with java), I used to do it using…
Otavio Miguel
  • 334
  • 1
  • 5
  • 15
1
vote
1 answer

How can I improve image display quality?

Original image Screenshot When I try to load an image in my application, it feels like it is somehow not stretching properly. I tried all the options for the "fit" parameter And nothing happened It's my code SingleChildScrollView( child:…
MadLax
  • 1,149
  • 3
  • 10
  • 13
1
vote
1 answer

Image conversion in flutter

I am trying to pick an asset image -> base64image String -> Display it But it is not working as expected. My code is as follows: ImagePickPart: ByteData bytes = await rootBundle.load(_images[_ran.nextInt(_images.length)]); String asBase64 =…
Damandroid
  • 756
  • 9
  • 31
1
vote
2 answers

Has Flutter changed how it handles an Image as AppBar title?

In my Flutter app I am using a png image as the title inside the AppBar. It seems in the last 24h to have changed how it handles the resizing of the image. Over the last month or two this has been working fine: inside my MaterialApp my…
Jonathan
  • 341
  • 3
  • 14
1
vote
0 answers

how to upload image using image picker and display it on another page in flutter

I have a question about how to upload an image using an image picker and display it on another page. in this code, I am uploading 5 images but I don't know how to display that 5 uploaded images on another page. I created model for images uploading.…