change design VitalSignDetailsWidget

merge-requests/90/head
Mohammad ALjammal 6 years ago
parent 6319af97f2
commit ec85a0ea18

@ -26,11 +26,9 @@ class _VitalSignDetailsWidgetState extends State<VitalSignDetailsWidget> {
color: Colors.transparent, color: Colors.transparent,
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
topLeft: Radius.circular(10.0), topLeft: Radius.circular(10.0),
topRight: Radius.circular(10.0)
), ),
border: Border.all( border: Border.all(color: Colors.grey, width: 1),
color: Colors.grey,
width: 0.5
),
), ),
margin: EdgeInsets.all(20), margin: EdgeInsets.all(20),
child: Container( child: Container(
@ -38,8 +36,21 @@ class _VitalSignDetailsWidgetState extends State<VitalSignDetailsWidget> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Row( Table(
children: <Widget>[ border: TableBorder.symmetric(
inside: BorderSide(width: 2.0,color: Colors.grey[300]),
),
children: fullData(),
),
],
),
),
);
}
List<TableRow> fullData(){
List<TableRow> tableRow = [];
tableRow.add(TableRow(children: [
Expanded( Expanded(
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
@ -69,16 +80,10 @@ class _VitalSignDetailsWidgetState extends State<VitalSignDetailsWidget> {
child: Texts(widget.title2, color: Colors.white), child: Texts(widget.title2, color: Colors.white),
), ),
height: 60), height: 60),
), )
], ]));
), widget.vitalList.forEach((vital) {
Column( tableRow.add(TableRow(children: [
crossAxisAlignment: CrossAxisAlignment.start,
children: widget.vitalList.map((vital) {
return Column(
children: <Widget>[
Row(
children: <Widget>[
Expanded( Expanded(
child: Container( child: Container(
height: 50, height: 50,
@ -91,9 +96,6 @@ class _VitalSignDetailsWidgetState extends State<VitalSignDetailsWidget> {
), ),
), ),
), ),
SizedBox(
width: 2,
),
Expanded( Expanded(
child: Container( child: Container(
height: 50, height: 50,
@ -106,18 +108,9 @@ class _VitalSignDetailsWidgetState extends State<VitalSignDetailsWidget> {
), ),
), ),
), ),
], ]));
), });
SizedBox( return tableRow;
height: 2,
),
],
);
}).toList(),
),
],
),
),
);
} }
} }

@ -239,6 +239,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.0" version: "2.0.0"
expandable:
dependency: "direct main"
description:
name: expandable
url: "https://pub.dartlang.org"
source: hosted
version: "4.1.4"
fixnum: fixnum:
dependency: transitive dependency: transitive
description: description:

Loading…
Cancel
Save