update card layouts

This commit is contained in:
Trent Palmer 2019-09-11 17:53:29 -07:00
parent ca38f81ce8
commit 1be4b81f17
1 changed files with 34 additions and 9 deletions

View File

@ -61,11 +61,26 @@ Card cardThree(String allText) {
color: ivory, color: ivory,
child: Padding( child: Padding(
padding: EdgeInsets.all(8.0), padding: EdgeInsets.all(8.0),
child: Text( child: Row(
allText, children: <Widget>[
style: TextStyle( Expanded(
fontSize: 20.0, flex: 1,
), child: Card(),
),
Expanded(
flex: 8,
child: Text(
allText,
style: TextStyle(
fontSize: 20.0,
),
),
),
Expanded(
flex: 1,
child: Card(),
),
],
), ),
), ),
), ),
@ -89,6 +104,11 @@ Card cardOne(String leftText) {
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Expanded( Expanded(
flex: 1,
child: Card(),
),
Expanded(
flex: 7,
child: Text( child: Text(
leftText, leftText,
style: TextStyle( style: TextStyle(
@ -96,7 +116,8 @@ Card cardOne(String leftText) {
), ),
), ),
), ),
Container( Expanded(
flex: 2,
child: Icon( child: Icon(
Icons.arrow_right, Icons.arrow_right,
size: 50.0, size: 50.0,
@ -127,7 +148,11 @@ Card cardTwo(String leftText,String mapUrl,String mapUrlName) {
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Expanded( Expanded(
flex: 8, flex: 1,
child: Card(),
),
Expanded(
flex: 7,
child: Text( child: Text(
leftText, leftText,
style: TextStyle( style: TextStyle(
@ -172,7 +197,7 @@ Card convenienceCardOne(String infoUrl,String infoUrlName,String middleText,Stri
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Expanded( Expanded(
flex: 2, flex: 3,
child: InkWell( child: InkWell(
child: Icon( child: Icon(
Icons.info, Icons.info,
@ -185,7 +210,7 @@ Card convenienceCardOne(String infoUrl,String infoUrlName,String middleText,Stri
), ),
), ),
Expanded( Expanded(
flex: 6, flex: 5,
child: Text( child: Text(
middleText, middleText,
textAlign: TextAlign.center, textAlign: TextAlign.center,