Advertisement
saimain-dev

Flutter Homework (Layout 1)

Oct 21st, 2020 (edited)
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.90 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. void main() {
  4.   runApp(
  5.     MaterialApp(
  6.       home: Scaffold(
  7.           appBar: AppBar(
  8.             title: Text('Homework Flutter Layout 1'),
  9.           ),
  10.           body: Container(
  11.             padding: EdgeInsets.all(10),
  12.             color: Colors.red[100],
  13.             child: Column(
  14.               children: [
  15.                 Expanded(
  16.                   child: Row(
  17.                     children: [
  18.                       Expanded(
  19.                         child: Container(
  20.                           color: Colors.red,
  21.                         ),
  22.                       ),
  23.                       SizedBox(
  24.                         width: 10,
  25.                       ),
  26.                       Expanded(
  27.                         child: Container(
  28.                           color: Colors.red,
  29.                         ),
  30.                       ),
  31.                     ],
  32.                   ),
  33.                 ),
  34.                 SizedBox(
  35.                   height: 10,
  36.                 ),
  37.                 Expanded(
  38.                   child: Container(
  39.                     color: Colors.red,
  40.                   ),
  41.                 ),
  42.                 SizedBox(
  43.                   height: 10,
  44.                 ),
  45.                 Expanded(
  46.                   child: Row(
  47.                     children: [
  48.                       Expanded(
  49.                         child: Container(
  50.                           color: Colors.red,
  51.                         ),
  52.                       ),
  53.                       SizedBox(
  54.                         width: 10,
  55.                       ),
  56.                       Expanded(
  57.                         child: Container(
  58.                           color: Colors.red,
  59.                         ),
  60.                       ),
  61.                     ],
  62.                   ),
  63.                 ),
  64.               ],
  65.             ),
  66.           )),
  67.     ),
  68.   );
  69. }
  70.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement