Advertisement
ZawXtut

flutter_SanDev004

Oct 20th, 2020
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 5.27 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.           crossAxisAlignment: CrossAxisAlignment.center,
  16.           mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  17.           mainAxisSize: MainAxisSize.max,
  18.           children: [
  19.             Row(
  20.               mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  21.               children: [
  22.                 Container(
  23.                   height: 200,
  24.                   width: 80,
  25.                   color: Colors.blue,
  26.                 ),
  27.                 Column(
  28.                   children: [
  29.                     Container(
  30.                       width: 100,
  31.                       height: 100,
  32.                       color: Colors.red,
  33.                     ),
  34.                     Container(
  35.                       width: 100,
  36.                       height: 100,
  37.                       color: Colors.black,
  38.                     )
  39.                   ],
  40.                 ),
  41.                 Container(
  42.                   height: 200,
  43.                   width: 80,
  44.                   color: Colors.amber,
  45.                 ),
  46.                 Column(
  47.                   children: [
  48.                     Container(
  49.                       width: 100,
  50.                       height: 100,
  51.                       color: Colors.red,
  52.                     ),
  53.                     Container(
  54.                       width: 100,
  55.                       height: 100,
  56.                       color: Colors.black,
  57.                     )
  58.                   ],
  59.                 ),
  60.               ],
  61.             ),
  62.             //////////////////
  63.             Row(
  64.               mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  65.               children: [
  66.                 Column(
  67.                   children: [
  68.                     Container(
  69.                       margin: const EdgeInsets.all(2),
  70.                       height: 150,
  71.                       width: 180,
  72.                       color: Colors.yellow,
  73.                     ),
  74.                     Container(
  75.                       margin: const EdgeInsets.only(top: 5),
  76.                       height: 80,
  77.                       width: 180,
  78.                       color: Colors.pink,
  79.                     ),
  80.                   ],
  81.                 ),
  82.                 Column(
  83.                   mainAxisSize: MainAxisSize.max,
  84.                   crossAxisAlignment: CrossAxisAlignment.center,
  85.                   mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  86.                   children: [
  87.                     Container(
  88.                       height: 80,
  89.                       width: 180,
  90.                       color: Colors.green,
  91.                     ),
  92.                     Row(
  93.                       mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  94.                       children: [
  95.                         Column(
  96.                           children: [
  97.                             Container(
  98.                               margin: const EdgeInsets.all(2),
  99.                               height: 80,
  100.                               width: 80,
  101.                               color: Colors.blue,
  102.                             ),
  103.                             Container(
  104.                               margin: const EdgeInsets.all(2),
  105.                               height: 80,
  106.                               width: 80,
  107.                               color: Colors.pink,
  108.                             ),
  109.                           ],
  110.                         ),
  111.                         ///////////////////////////////////////
  112.                         Column(
  113.                           mainAxisSize: MainAxisSize.max,
  114.                           mainAxisAlignment: MainAxisAlignment.spaceAround,
  115.                           children: [
  116.                             Column(
  117.                               children: [
  118.                                 Container(
  119.                                   margin: const EdgeInsets.all(2),
  120.                                   height: 50,
  121.                                   width: 90,
  122.                                   color: Colors.yellow,
  123.                                 ),
  124.                                 Container(
  125.                                   margin: const EdgeInsets.all(2),
  126.                                   height: 50,
  127.                                   width: 90,
  128.                                   color: Colors.green,
  129.                                 ),
  130.                               ],
  131.                             ),
  132.                             Row(
  133.                               children: [
  134.                                 Container(
  135.                                   height: 50,
  136.                                   width: 90,
  137.                                   color: Colors.blue,
  138.                                 ),
  139.                               ],
  140.                             )
  141.                           ],
  142.                         ),
  143.                       ],
  144.                     ),
  145.                   ],
  146.                 ),
  147.               ],
  148.             )
  149.           ],
  150.         ),
  151.       ),
  152.     );
  153.   }
  154. }
  155.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement