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

Why Is PNG file with Drop Shadow in Flutter Web App Grainy?

I just started to learn Flutter to build a web app, and I can't figure out why the PNG images I include in the app are grainy. Here's how it looks in Chrome: Here is the entirety of my app: import 'package:flutter/material.dart'; void main() { …
Clifton Labrum
  • 13,053
  • 9
  • 65
  • 128
2
votes
1 answer

Do we need to manually delete the recorded cached video file using ImagePicker flutter plugin?

I am using the ImagePicker (https://pub.dev/packages/image_picker) plugin to record videos and I noticed the recorded videos are stored in app's cache folder (example:…
Manas
  • 3,060
  • 4
  • 27
  • 55
2
votes
0 answers

How to prevent NetworkImage from crushing debugger?

I am trying to run a debugger in my flutter app. Whenever the app tries to load NetworkImage with invalid URL debugger crashes. It makes debugging very complicated because I need to comment out all images in the app to prevent this from happening…
Nazarii Kahaniak
  • 461
  • 3
  • 11
2
votes
0 answers

Only stretch the center of the image in flutter

This is my image: It's height is 8, but it's width is unknown, maybe 50, 100 or 200. What I want is the image's left and right side are not stretched when it's width changed. I use centerSlice but I don't clear it's value: final bottomImage =…
无夜之星辰
  • 5,426
  • 4
  • 25
  • 48
2
votes
1 answer

Flutter. Image rounded borders not working

I'm trying to make rounded corners of image. Here is my code: ClipRRect( borderRadius: BorderRadius.circular(14), child: Image.asset( …
2
votes
4 answers

flutter cannot load and render svg images

I am trying to load and show an image in svg format but I get this error everytime unhandled element pattern; Picture key: AssetBundlePictureKey(bundle: PlatformAssetBundle#5abbc(), name: "assets/svg/Ellipse.svg", colorFilter: null) ══╡ EXCEPTION…
Kevnlan
  • 487
  • 2
  • 10
  • 31
2
votes
2 answers

Load phone's gallery as fast as native IOS in Flutter without OOM

I am trying to load the phone's gallery (with pagination) in a GridView.builder widget. Here is the issue i have created using the photo_manager package. I have got some help and it made me think about a possible solution (see my last comment on the…
Tom3652
  • 2,540
  • 3
  • 19
  • 45
2
votes
1 answer

Flutter Image Custom Shape

How I can create a shape for the image? I need a shape for my image like this; Tried with Container border but I can't manage the borders like this. How can I change my image's border like simple image?
secret
  • 742
  • 1
  • 7
  • 24
2
votes
0 answers

Using CachedNetworkImage inside of Futurebuilder Still shows progress indicator after image is cached

I would like to retrieve the image from the cache after looking it up the first time but since my URL is getting stored in a future it seems that I'm awaiting the future every time which in turn is causing the ProgressIndecator to show even when the…
Cody
  • 117
  • 1
  • 13
2
votes
3 answers

Flutter Image Hovering Overlay Effect

I am working on a flutter web project and I want to the following overlay effect over my image that whenever the cursor hovers over the image, a few buttons should show up, and the opacity of the image gets reduced (or blurred out) while hovering. I…
2
votes
1 answer

Flutter Image Picker doesn't pick image from Album/Gallery

I'm trying to implement imagepicker library in my app. My app runs without any errors but I can't pick/select images from the album/gallery. On selecting the image the app should display the image in the body but nothing happens. I have to tap on…
Vector
  • 21
  • 3
2
votes
3 answers

Flutter Image gallery saver - how to access path

I'm using Image gallery saver plugin for saving images. Method await ImageGallerySaver.saveImage(pngBytes) returns an object {filePath: file:///storage/emulated/0/wallpapers/1608205629471.jpg, errorMessage: null, isSuccess: true} I'd like to get the…
2
votes
1 answer

How to delete picture from the data file in flutter app

In my app I am taking picture and storing it in the device also storing the path using sqlite . Now if I delete the data using the code given below it delete from the local database(sqlite) but do not delete the picture from the file . for example…
Sajid ikram
  • 53
  • 1
  • 6
2
votes
0 answers

Render SVG and PNG/JPG with the same Widget

Currently, I am using Image.network to render PNG/JPG and SvgPicture.network to render SVG. However, is there a Widget that is able to detect the actual image type and automatically selects either Image.network or SvgPicture.network depending on the…
user3612643
  • 5,096
  • 7
  • 34
  • 55
2
votes
1 answer

Flutter: How are images passed to native side?

I am building a plugin and need to make use of images (like Image.asset or Image.file) and need to pass them to my native plugin. However, I could not find a decent way to pass these. Does anyone know how to achieve that and how these objects are…
ktm125
  • 442
  • 5
  • 21