Invalid argument(s): No host specified in URI file:///assets/supreme.webp

1,793 views
Skip to first unread message

Natthaphat Muanpej

unread,
Dec 27, 2020, 9:29:10 AM12/27/20
to Flutter Development (flutter-dev)
I use the file as a local file but the example is https so what if I want to use the file as a local file not sure which part do I have to change

Here is my central data store
placeholder1.png

placeholder1.png
and here is where I called the program to run
placeholder1.2.png

placeholder1.4.png

placeholder1.5.png

actually this need to have two picture which I setted


Suzuki Tomohiro

unread,
Dec 27, 2020, 10:03:21 AM12/27/20
to Natthaphat Muanpej, Flutter Development (flutter-dev)
Use AssetImage
You need to know your “Product” class on how it handles the asset names.

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/22973186-f4c4-471c-9aa1-e0f463b2e34an%40googlegroups.com.

Natthaphat Muanpej

unread,
Dec 27, 2020, 8:04:39 PM12/27/20
to Flutter Development (flutter-dev)
i had try it but still it can't call it my picture variable type is String

placeholder1.6.png

ในวันที่ วันอาทิตย์ที่ 27 ธันวาคม ค.ศ. 2020 เวลา 22 นาฬิกา 03 นาที 21 วินาที UTC+7 suz...@gmail.com เขียนว่า:

Natthaphat Muanpej

unread,
Dec 27, 2020, 8:07:22 PM12/27/20
to Flutter Development (flutter-dev)

here is what happen when i use AssetImage
placeholder1.7.png

ในวันที่ วันจันทร์ที่ 28 ธันวาคม ค.ศ. 2020 เวลา 8 นาฬิกา 04 นาที 39 วินาที UTC+7 Natthaphat Muanpej เขียนว่า:

Suzuki Tomohiro

unread,
Dec 27, 2020, 9:27:42 PM12/27/20
to Flutter Development (flutter-dev)
Reply all
Reply to author
Forward
0 new messages