Flutterで画像を表示する
Flutterで画像を表示する
flutter: # The following line ensures that the Material Icons font is # included with your application, so that you can use the icons in # the material Icons class. uses-material-design: true # To add assets to your application, add an assets section, like this: # file指定でも、ディレクトリ指定でもいける。今回はディレクトリ指定にした assets: - images/
- 以下みたいに呼べる
Image.asset('images/logo.png')