diff --git a/lib/widgets/doctor/lab_result_widget.dart b/lib/widgets/doctor/lab_result_widget.dart index e897f33e..5ca50864 100644 --- a/lib/widgets/doctor/lab_result_widget.dart +++ b/lib/widgets/doctor/lab_result_widget.dart @@ -59,9 +59,58 @@ class _LabResultWidgetState extends State { decoration: BoxDecoration( borderRadius: BorderRadius.all(Radius.circular(10)), ), - child: Column( - children: widget.labResult.map((result) { + child: Column(children: [ + Container( + child: Row( + children: [ + Expanded( + child: Container( + decoration: BoxDecoration( + color: HexColor('#515B5D'), + borderRadius: BorderRadius.only( + topLeft: Radius.circular(10.0), + ), + ), + child: Center( + child: Texts( + TranslationBase.of(context).description, + color: Colors.white, + ), + ), + height: 60, + ), + ), + Expanded( + child: Container( + color: HexColor('#515B5D'), + child: Center( + child: Texts( + TranslationBase.of(context).value, + color: Colors.white), + ), + height: 60), + ), + Expanded( + child: Container( + decoration: BoxDecoration( + color: HexColor('#515B5D'), + borderRadius: BorderRadius.only( + topRight: Radius.circular(10.0), + ), + ), + child: Center( + child: Texts( + TranslationBase.of(context).range, + color: Colors.white), + ), + height: 60), + ), + ], + ), + ), + ...widget.labResult.map((result) { return Container( + padding: EdgeInsets.symmetric(horizontal: 4), decoration: BoxDecoration( borderRadius: BorderRadius.all(Radius.circular(10)), border: Border( @@ -76,53 +125,6 @@ class _LabResultWidgetState extends State { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Row( - children: [ - Expanded( - child: Container( - decoration: BoxDecoration( - color: HexColor('#515B5D'), - borderRadius: BorderRadius.only( - topLeft: Radius.circular(10.0), - ), - ), - child: Center( - child: Texts( - TranslationBase.of(context) - .description, - color: Colors.white, - ), - ), - height: 60, - ), - ), - Expanded( - child: Container( - color: HexColor('#515B5D'), - child: Center( - child: Texts( - TranslationBase.of(context).value, - color: Colors.white), - ), - height: 60), - ), - Expanded( - child: Container( - decoration: BoxDecoration( - color: HexColor('#515B5D'), - borderRadius: BorderRadius.only( - topRight: Radius.circular(10.0), - ), - ), - child: Center( - child: Texts( - TranslationBase.of(context).range, - color: Colors.white), - ), - height: 60), - ), - ], - ), Row( children: [ Expanded( @@ -164,7 +166,7 @@ class _LabResultWidgetState extends State { ), ); }).toList(), - ), + ]), ), ) ],