Questions tagged [flutter-assetimage]
40 questions
1
vote
1 answer
How to manage/add multiple image resolution/size in flutter for responsive UI
I have bitmap images from an array of different dpis, how can I properly arrange them on flutter? - Just like placing them on mipmaps folders on Android.
Dpi list:
ldpi - 0.75x
mdpi - 1.0x
hdpi - 1.5x
xhdpi - 2.0x
xxhdpi - 3.0x
xxxhdpi - 4.0x

Naeem Bashir
- 1,937
- 20
- 17
0
votes
0 answers
Is it possible to delete a flutter asset using another app, for example any file explorer?
Flutter document says
An asset is a file that is bundled and deployed with your app, and is accessible at runtime.
Is it possible for other apps to gain access to that asset folder, and delete any asset from there?
Eventually, they are just the…

malinka
- 1
0
votes
0 answers
flutter build web creates a nested assets folder so images are not loaded
from pubspec.yaml:
flutter:
assets:
- assets/images/
fonts:
- family: NunitoSans
fonts:
- asset: assets/fonts/NunitoSans-Regular.ttf
- asset: assets/fonts/NunitoSans-Bold.ttf
- asset:…

Rony Tesler
- 1,207
- 15
- 25
0
votes
1 answer
Change CircleAvatar image in a DrawerHeader Flutter
I am trying to change the user avatar, I am using image_picker package to get an image file, the I am copying the image to app folder, after that I set the state to see the image that was picked. I get some exception error:
Exception caught by image…

Luis Rotoly
- 57
- 6
0
votes
1 answer
Flutter: Unable to load assets for flutter_map
I'm building an app where I embed a map using flutter_map.
I have downloaded offline tiles, but they cannot be loaded from the assets folder because the following error appears: Error.
flutter_map itself gives the following errors: Error
My…

Lama_Agent
- 29
- 5
0
votes
0 answers
Flutter package is not recognizing assets
I was developing a Flutter package and everything is ok, but I'm unable to find a way to properly load assets into the library. I've been looking for a solution and I found that one way to include the assets is creating an "assets" folder inside…

Joel García
- 36
- 5
0
votes
0 answers
Image assets are not being used based on device pixel ratio
I have an image I'm trying to display based on the device pixel ratio.
But the app just keeps using the 1.0x version of the image.
In my project's directory I have the structure
assets
tablet
graphics
0.5x
image.png
2.0x
…

TheCoolest2
- 33
- 7
0
votes
0 answers
Flutter: non-asset local image
I'd like to include images in my Flutter application which are not asset images.
Let me clarify a bit. I am working with an embedded Unity application inside the Flutter app. I can communicate bidirectionally and part of the communication is sending…

Wouter Vandenputte
- 1,948
- 4
- 26
- 50
0
votes
1 answer
Flutter image assets not loading after redirect with go_router & login
I have a small Flutter app with 2 screens (/login & /home) and I use go_router to navigate and animated_login. The assets are placed on the home screen and they load fine if I directly access the screen, so pubspec.yaml is correctly defined.
The…

vrwolf
- 403
- 4
- 10
0
votes
1 answer
I want to delete the captured image via wechat_camera_picker Flutter
For image_picker MainActivity destruction I wanted to use other plugin to pick image. And I found wechat_camera_picker as an alternative. But there was a problem while capturing the image. The captured image saved on Local Storage after selecting…

Nasar
- 66
- 1
- 8
0
votes
0 answers
Is image precaching not effective for large images?
I'm making a quiz-type app for Android & iOS, which is art oriented. This means that image resolution is very important. Client provided ~30 images, 25mb each on average. I can probably get away with compressing them to about 4mb each. After that,…

Leonardo Hysesani
- 29
- 6
0
votes
1 answer
Adding Images to card and text
Hi I've been building this app and I came across a problem that I dont know how to solve. I want to have a Row of Card Widgets, that all display some info I provided beforehand. This is basically how I wanted to do it:
``
import…

Jonas Jacob Biermann
- 125
- 2
- 14
0
votes
2 answers
Flutter asset image wont display properly
I want to add an icon to a card widget so I used the ImageIcon widget as below
Card(
color: colorPalette.cultured,
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Row(
children: [
Text(label,style:…

Kavishka Rajapakshe
- 537
- 1
- 8
- 23
0
votes
2 answers
Flutter image not showing
The image is not showing. While running, it shows this error but it is running without image. I have used tab between the '-' and the image path. I have also created a folder called assets and a subfolder slider_icons and included my images in…

Divya
- 41
- 6
0
votes
1 answer
ImageProvider bug - Flutter
I'm encountering an Image provider bug that I'm currently stuck trying to fix it(I'm new to Flutter).
The error I'm getting looks like this
../../flutter/packages/flutter/lib/src/painting/image_provider.dart:672:7: Error: Expected an identifier,…

Shadow Walker
- 979
- 5
- 27
- 51