Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 1018 Bytes

building-layout.md

File metadata and controls

19 lines (11 loc) · 1018 Bytes

Step: Implement the title row

  • Putting a Column inside an Expanded widget stretches the column to use all remaining free space in the row.

  • When pasting code into your app, indentation can become skewed. You can fix this in your Flutter editor using the automatic reformatting support.

Step: Implement the image section

  • Note that pubspec.yaml is case sensitive, so write assets: and the image URL as shown above.

  • The pubspec file is also sensitive to white space, so use proper indentation.

  • BoxFit.cover tells the framework that the image should be as small as possible but cover its entire render box.

Step 6: Final touch

Dart code: main.dart Image: images Pubspec: pubspec.yaml