Advertisement
ZawXtut

flutter_SanDev003

Oct 20th, 2020 (edited)
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 3.45 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. void main() => runApp(MyApp());
  4.  
  5. class MyApp extends StatelessWidget {
  6.   @override
  7.   Widget build(BuildContext context) {
  8.     return MaterialApp(
  9.       title: 'Material App',
  10.       home: Scaffold(
  11.         appBar: AppBar(
  12.           title: Text('Material App Bar'),
  13.         ),
  14.         body: Column(
  15.           mainAxisAlignment: MainAxisAlignment.start,
  16.           mainAxisSize: MainAxisSize.max,
  17.           children: [
  18.             Row(
  19.               children: [
  20.                 Container(
  21.                   margin: const EdgeInsets.fromLTRB(5, 10, 5, 0),
  22.                   height: 150,
  23.                   width: 100,
  24.                   color: Colors.amber,
  25.                 ),
  26.                 Expanded(
  27.                   child: Container(
  28.                     margin: const EdgeInsets.fromLTRB(5, 10, 5, 0),
  29.                     height: 150,
  30.                     width: 100,
  31.                     color: Colors.greenAccent,
  32.                   ),
  33.                 ),
  34.                 Container(
  35.                   margin: const EdgeInsets.fromLTRB(5, 10, 5, 0),
  36.                   height: 150,
  37.                   width: 100,
  38.                   color: Colors.red,
  39.                 ),
  40.               ],
  41.             ),
  42.             Row(children: [
  43.               Expanded(
  44.                 child: Container(
  45.                   margin: const EdgeInsets.fromLTRB(5, 10, 5, 0),
  46.                   height: 150,
  47.                   width: 100,
  48.                   child: FlutterLogo(size: 80,),
  49.                   color: Colors.cyanAccent,
  50.                 ),
  51.               ),
  52.             ]),
  53.             /////////////////////////////
  54.             Row(
  55.               mainAxisAlignment: MainAxisAlignment.spaceBetween,
  56.               crossAxisAlignment: CrossAxisAlignment.center,
  57.               mainAxisSize: MainAxisSize.max,
  58.               children: [
  59.                 Expanded(
  60.                   child: Container(
  61.                     margin: const EdgeInsets.fromLTRB(5, 10, 5, 0),
  62.                     height: 280,
  63.                     width: 80,
  64.                     color: Colors.red[500],
  65.                   ),
  66.                 ),
  67.                 Column(
  68.                   children: [
  69.                     Container(
  70.                       margin: const EdgeInsets.fromLTRB(5, 10, 5, 0),
  71.                       height: 120,
  72.                       width: 270,
  73.                       color: Colors.blue[500],
  74.                     ),
  75.                     Row(
  76.                       children: [
  77.                         Container(
  78.                           margin: const EdgeInsets.fromLTRB(5, 10, 0, 0),
  79.                           height: 150,
  80.                           width: 80,
  81.                           color: Colors.amber[500],
  82.                         ),
  83.                         Container(
  84.                           margin: const EdgeInsets.fromLTRB(5, 10, 0, 0),
  85.                           height: 150,
  86.                           width: 100,
  87.                           color: Colors.black,
  88.                         ),
  89.                         Container(
  90.                           margin: const EdgeInsets.fromLTRB(5, 10, 5, 0),
  91.                           height: 150,
  92.                           width: 80,
  93.                           color: Colors.cyan,
  94.                         ),
  95.                       ],
  96.                     ),
  97.                   ],
  98.                 ),
  99.               ],
  100.             )
  101.           ],
  102.         ),
  103.       ),
  104.     );
  105.   }
  106. }
  107.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement