Skip to content

Instantly share code, notes, and snippets.

@McLarenCollege
Created October 10, 2019 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save McLarenCollege/39da904c5950e47825e911713b98d2ce to your computer and use it in GitHub Desktop.
Save McLarenCollege/39da904c5950e47825e911713b98d2ce to your computer and use it in GitHub Desktop.
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