Advertisement
Guest User

Untitled

a guest
Sep 4th, 2018
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.38 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2. import './../util/appColors.dart';
  3.  
  4. class MainMenu extends StatelessWidget {
  5.  
  6.   @override
  7.  
  8.   Widget build(BuildContext context) {
  9.  
  10.     return Scaffold(
  11.  
  12.       appBar: AppBar(
  13.  
  14.         leading: Icon(Icons.code),
  15.  
  16.         title: Text("Home"),
  17.  
  18.         backgroundColor: MyColors.primaryBlue
  19.  
  20.       ),
  21.  
  22.       backgroundColor: MyColors.mainBG,
  23.  
  24.       body: Padding(
  25.  
  26.         padding: EdgeInsets.all(15.0),
  27.  
  28.         child: Column(
  29.  
  30.           children: <Widget>[
  31.  
  32.             Expanded(
  33.  
  34.               child: new Padding(
  35.  
  36.                 padding: EdgeInsets.all(15.0),
  37.  
  38.                 child: Row(
  39.  
  40.                   children: <Widget>[
  41.  
  42.                     Expanded(child: Container(color: Colors.blue,)),
  43.                     Expanded(child: Container(color: Colors.red,)),
  44.  
  45.                   ],
  46.  
  47.                 ),
  48.  
  49.               )
  50.  
  51.             ),
  52.  
  53.             Expanded(
  54.  
  55.               child: new Padding(
  56.  
  57.                 padding: EdgeInsets.all(15.0),
  58.  
  59.                 child: Row(
  60.  
  61.                   children: <Widget>[
  62.  
  63.                     Expanded(child: Container(color: Colors.red,)),
  64.                     Expanded(child: Container(color: Colors.blue,)),
  65.  
  66.                   ],
  67.  
  68.                 ),
  69.  
  70.               )
  71.  
  72.             ),
  73.  
  74.           ],
  75.  
  76.         ),
  77.  
  78.       ),
  79.      
  80.     );
  81.   }
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement