Created
October 10, 2019 06:00
-
-
Save McLarenCollege/39da904c5950e47825e911713b98d2ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class InputPage extends StatefulWidget { | |
@override | |
_InputPageState createState() => _InputPageState(); | |
} | |
class _InputPageState extends State<InputPage> { | |
Container dummy = Container( | |
margin: EdgeInsets.all(12), | |
decoration: BoxDecoration( | |
color: Color(0xFF1D1F31), | |
borderRadius: BorderRadius.all(Radius.circular(12),),), | |
); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text('BMI CALCULATOR'), | |
centerTitle: true, | |
), | |
body: Column( | |
children: <Widget>[ | |
Expanded( | |
child: Row( | |
children: <Widget>[ | |
Expanded( | |
child: Container( | |
margin: EdgeInsets.all(12), | |
decoration: BoxDecoration( | |
color: Color(0xFF1D1F31), | |
borderRadius: BorderRadius.all(Radius.circular(12),),), | |
), | |
), | |
Expanded( | |
child: Container( | |
margin: EdgeInsets.all(12), | |
decoration: BoxDecoration( | |
color: Color(0xFF1D1F31), | |
borderRadius: BorderRadius.all(Radius.circular(12),),), | |
), | |
) | |
], | |
), | |
), | |
Expanded( | |
child: Container( | |
margin: EdgeInsets.all(12), | |
decoration: BoxDecoration( | |
color: Color(0xFF1D1F31), | |
borderRadius: BorderRadius.all(Radius.circular(12),),), | |
), | |
), | |
Expanded( | |
child: Row( | |
children: <Widget>[ | |
Expanded( | |
child: Container( | |
margin: EdgeInsets.all(12), | |
decoration: BoxDecoration( | |
color: Color(0xFF1D1F31), | |
borderRadius: BorderRadius.all(Radius.circular(12),),), | |
), | |
), | |
Expanded( | |
child: Container( | |
margin: EdgeInsets.all(12), | |
decoration: BoxDecoration( | |
color: Color(0xFF1D1F31), | |
borderRadius: BorderRadius.all(Radius.circular(12),),), | |
), | |
) | |
], | |
), | |
), | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment