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
0
votes
1 answer

Flutter: image base64 encode | bytes to base64 encode in flutter is not accurate

I am Trying to Upload a image to server, by the way I have used Image Cropper and Picker Libraries. it works fine, but during API Call I need to encode as base64, here the encoded string is wrong comparing to online image-to-base64 encode tool. so…
KARTHIKEYAN N
  • 81
  • 2
  • 11
0
votes
0 answers

Flutter Image Crop Not Responding

I am trying to crop an image from picked image from gallery, the image is picked perfectly but while trying to crop an image it seems nothing happened in the screen, and some problem detected in console though I can't understand the problem. the…
KARTHIKEYAN N
  • 81
  • 2
  • 11
0
votes
1 answer

How to check execution time in flutter app?

I have created the basic flutter app with API integration. Now few API calls give the instant response the few are very slow. I need to find which calls are giving me a slow response.
GSM
  • 51
  • 3
0
votes
2 answers

Does not allow to save image to local directory in flutter in android 10

I'm trying to save an image to phone local directory. Here I use image_downloader package for that. Here's my code class DownloadImage { Future writeToDownloadPath(GridImage imageData) async { try { var imageId = await…
0
votes
1 answer

Flutter/Dart - Photo changed but not the URL, therefore Provider's Consumer is not Refreshed

I'm using Provider with ChangeNotifier to alert a Consumer once a new photo is uploaded to a server replacing an old photo. The problem is that the URL stays the same as the photo is merely overwritten and keeps the same name. Hence the Consumer…
Meggy
  • 1,491
  • 3
  • 28
  • 63
0
votes
2 answers

Fade In Network Image resizes after loading in

Here is a video of my issue https://www.youtube.com/watch?v=wskX_bZNExw If you notice, after the network image loads in, it resizes (typically removing empty space). Widget _buildPostThumbnail(List thumbnails) { if…
user8624633
0
votes
2 answers

I need to Implement shader mask in flutter to the image

I am trying to implement the ShaderMask to only the background image in the container below with color Color(0xFFFF0000) and transparency 29% but I am not able to do so, the below code I have implemented it is masking all the elements of the…
user14185798
0
votes
1 answer

I have two images which is use for pin or unpin data in flutter

I have two images in flutter which is use for pin and unpin the data in list view so my program is that when i click on pin image than unpin image should be hide and when i click unpin image than pin image should hide. so how to implement this thing…
0
votes
1 answer

Offset origin of tiled Image in Flutter

I'm trying to create a parallax background in a Flutter app, and the most efficient way to build it is to use a Stack with the image filling the screen as a background and then my list on top. The image is tiled with an ImageRepeat set on the Y…
Lee Probert
  • 10,308
  • 8
  • 43
  • 70
0
votes
1 answer

Error to loading asset image to Image material on Flutter

Configuring assets on pubspec.yaml file: flutter: assets: - assets/product_images/ save images on root folter assets/product_images/ and get Image: import 'package:flutter/material.dart'; import 'package:/vo/product.dart'; class MockProducts…
Augusto
  • 3,825
  • 9
  • 45
  • 93
0
votes
1 answer

Handling null file from image_picker in image_cropper flutter?

I'm trying to get an image using image_picker package and then passing to image_cropper. I have taken a bit different approach to avoid getting back to the home screen after image selection before going to crop image screen. Here is my code for…
ASAD HAMEED
  • 2,296
  • 1
  • 20
  • 36
0
votes
3 answers

Flutter image is not showing

I want to show some local image and display it on the screen like this: Image(image: AssetImage('assets/images/addFood.png')) But I cannot see the image on the screen and I am getting no error at all. Here is what I have done: In my pubspec.yaml I…
Tamir Abutbul
  • 7,301
  • 7
  • 25
  • 53
0
votes
1 answer

invert image black to white in flutter

I have a bitmap image with black and white color I just need to invert the image and display how can I convert and display image. I have inverted bitmap image in java using this code can anyone suggest me how to do this in a flutter. private…
Sanjeev Baria
  • 158
  • 2
  • 9
0
votes
1 answer

How to put online image strings into SQLite database and retrive them in offline in Flutter?

I have response from an get API and the response is an array of oject. In response object,there is an image property which have online image string. I am fetching data from API and inserting then into SQLite database so that I have that data while I…
Juthi Sarker Aka
  • 2,217
  • 6
  • 16
  • 22
0
votes
2 answers

How to remove picked image in flutter?

I am using below code to pick the image in flutter application, which is successfully working. If in case I don't want to upload the image and want to remove the picked image, how am I supposed to that? Future getImage() async { print("get…
user13410550