Beginning Flutter: 31 AssetImage

Опубликовано: 28 Июнь 2018
на канале: Dash to Dartlang
3,488
28

In order to load custom images into your mobile app, you have to place it in a folder, usually labeled "assets."

Make sure to then change the pubspec.yaml, and then you can use the AssetImage widget.

As always, be aware of the parent widgets that you need to use with the AssetImage widget, as you cannot use the AssetImage without an appropriate parent widget.

Source code: https://drive.google.com/open?id=1x8f...
remember to also change the pubspec.yaml and have an image file.