Hello, I dont know why I still cant load assets after writing the path of the assets[already answered,]

Please see the attached pictures for my code and error messages. Thank you very much! <a href="https://i.stack.imgur.com/uqtyI.png" rel="nofollow noreferrer">enter ima...

Copying large file does not work in flutter

I try to use a 665 MB size Database file (SQLite file) for my flutter app. (the file is needed since it provides offline-data for a public transportation App. And ther...

DecorationImage doesnt show the image - Flutter

I couldn't find anything related to this, so I guess I am doing something very wrong. I am trying to display a <code>DecorationImage</code> inside <code>BoxDecoration<...

How can I add all files in sub-directories of assets in pubspec.yamal at once?

I want to add a JavaScript library in assets folder containing almost 32k items and so many sub-directories and they are interlinked with each other, I want to take ad...

How to set conditional statement for image in Flutter?

I have conditional statement to set image from Flutter assets, but is not working in Scaffold body. How to set conditional statement for image in Flutter?...

unexpected child flutter

i tried the ways i found to solve this error .i know there is a problem in my indentation. but i need a guidance now. -- flutter version: latest -- android studio vers...

How to get result of rootBundle.loadString(key) during flutter widget test?

I want to read a file from an asset during widget build with help of <strong>rootBundle</strong> but when I tried to call <em><strong>rootBundle.loadString('assets/myJ...

Flutter assets not found in android platform specific code

i want to load a '.ptl'-Pytorch Model file in android specific code. pubspec.yaml <pre><code>flutter: uses-material-design: true assets: - assets/mobilenet...

How do I display an image using flutter? Whenever I run the program it opens a random terminal called image_provider.dart

[enter image description here][1]this is the display window whenever i run and debug. it dosen't display the image completely but it opens a new tab with this code.</p...

unload assets in flutter

I am beginner to Flutter and try to place an image inside one of my widgets but give me below error: <pre><code>The following assertion was thrown resolving an im...

accessing rootBundle in flutter unit test

I am writing a unit test in my flutter app, seems I can't read json from assets in tests, but it works if I run app, I use code below to read json as string :<...

Check if a file exists before loading it

What I want to do is load an image in a Material Widget to use it in a ListTile, but this asset might not exist. <pre><code>class MyImage extends StatelessWidget {...

My decoration image is not showing in flutter

<pre><code>Card( child: Container( height: 250, width: 180, //color: Colors.pink...

FlutterError (Unable to load asset: assets/chat1 .txt)

I know I placed my text file at the location assets\chat1.txt, and my code also works with other txts but somehow I always get the following error: <blockquote> <p...

Flutter unable to load text from assets

i have read <a href="https://flutter.dev/docs/development/ui/assets-and-images#asset-images-in-package-dependencies" rel="nofollow noreferrer">https://flutter.dev/docs...