How to add Images in Flutter.

Make an image folder inside an assets folder, and if necessary, generate assets.

Flutter Image_directory

This should be in your root folder, and you can also find a pubspec.yaml file there.

pubspec.yaml

In order to update some lines in this file, open it in your vscode editor and make the necessary modifications.

To this

after this just use your images in your code after including child image function.

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x