Advertisement
saimain-dev

Flutter Homework (Layout 2)

Oct 21st, 2020
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.82 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.green[100],
  13.             child: Row(
  14.               mainAxisSize: MainAxisSize.max,
  15.               children: [
  16.                 Expanded(
  17.                   child: Container(
  18.                     color: Colors.green,
  19.                   ),
  20.                 ),
  21.                 SizedBox(
  22.                   width: 10,
  23.                 ),
  24.                 Expanded(
  25.                   child: Column(
  26.                     children: [
  27.                       Expanded(
  28.                         child: Container(
  29.                           color: Colors.green,
  30.                         ),
  31.                       ),
  32.                       SizedBox(
  33.                         height: 10,
  34.                       ),
  35.                       Expanded(
  36.                         child: Container(
  37.                           color: Colors.green,
  38.                         ),
  39.                       ),
  40.                       SizedBox(
  41.                         height: 10,
  42.                       ),
  43.                       Expanded(
  44.                         child: Container(
  45.                           color: Colors.green,
  46.                         ),
  47.                       ),
  48.                       SizedBox(
  49.                         height: 10,
  50.                       ),
  51.                       Expanded(
  52.                         child: Container(
  53.                           color: Colors.green,
  54.                         ),
  55.                       )
  56.                     ],
  57.                   ),
  58.                 )
  59.               ],
  60.             ),
  61.           )),
  62.     ),
  63.   );
  64. }
  65.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement