ui fix design

merge-requests/814/head
mosazaid 5 years ago
parent 2acad4e5dc
commit cdbd905a62

@ -15,7 +15,7 @@ class LabResultHistoryPage extends StatelessWidget {
final PatiantInformtion patient; final PatiantInformtion patient;
LabResultHistoryPage({this.patientLabOrder, this.filterName, this.patient}); LabResultHistoryPage({this.patientLabOrder, this.filterName, this.patient});
// TODO mosa changes // TODO mosa UI changes
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BaseView<LabsViewModel>( return BaseView<LabsViewModel>(
@ -34,6 +34,7 @@ class LabResultHistoryPage extends StatelessWidget {
...List.generate(model.labOrdersResultHistoryList.length, ...List.generate(model.labOrdersResultHistoryList.length,
(index) { (index) {
return Container( return Container(
margin: EdgeInsets.symmetric(vertical: 8.0, horizontal: 16.0),
child: Column( child: Column(
children: [ children: [
Row( Row(
@ -116,6 +117,14 @@ class LabResultHistoryPage extends StatelessWidget {
), ),
], ],
), ),
Divider(
color: Colors.grey,
height: 0.75,
thickness: 0.75,
),
SizedBox(
height: 10,
),
], ],
), ),
); );

@ -382,32 +382,15 @@ class PatientCard extends StatelessWidget {
"${DateTime.now().difference(AppDateUtils.getDateTimeFromServerFormat(patientInfo.admissionDate)).inDays + 1}", "${DateTime.now().difference(AppDateUtils.getDateTimeFromServerFormat(patientInfo.admissionDate)).inDays + 1}",
), ),
if (patientInfo.admissionDate != null) if (patientInfo.admissionDate != null)
Container( CustomRow(
child: RichText( label: TranslationBase.of(context).roomNo + " : ",
text: new TextSpan( value:
style: new TextStyle( "${patientInfo.roomId}",
fontSize: ),
2.0 * SizeConfig.textMultiplier,
color: Colors.black,
fontFamily: 'Poppins',
),
children: <TextSpan>[
new TextSpan(
text: TranslationBase.of(context)
.roomNo +
" : ",
style: TextStyle(fontSize: 12)),
new TextSpan(
text:
"${patientInfo.roomId}",
style: TextStyle(
fontWeight: FontWeight.w700,
fontSize: 13)),
]))),
if (isFromLiveCare) if (isFromLiveCare)
Column( Column(
children: [ children: [
CustomRow(label: TranslationBase.of(context) CustomRow(label: TranslationBase.of(context)
.clinic + .clinic +
" : ", " : ",

Loading…
Cancel
Save