design inhancment

merge-requests/319/head
hussam al-habibeh 5 years ago
parent 2ee2429c70
commit 54ad8bde0b

@ -558,78 +558,90 @@ class _UpdatePrescriptionFormState extends State<UpdatePrescriptionForm> {
height: 12.0, height: 12.0,
), ),
Container( Container(
height: screenSize.height * 0.070, height: model.patientAssessmentList
width: double.infinity, .isNotEmpty
child: Row( ? screenSize.height * 0.070
children: [ : 0.0,
Container( width: model.patientAssessmentList
width: MediaQuery.of(context) .isNotEmpty
.size ? double.infinity
.width * : 0.0,
0.29, child: model.patientAssessmentList
child: InkWell( .isNotEmpty
onTap: indicationList != null ? Row(
? () { children: [
Helpers.hideKeyboard( Container(
context); width:
} MediaQuery.of(context)
: null, .size
child: TextField( .width *
decoration: 0.29,
textFieldSelectorDecoration( child: InkWell(
model.patientAssessmentList onTap:
.isNotEmpty indicationList != null
? model ? () {
.patientAssessmentList[ Helpers.hideKeyboard(
0] context);
.icdCode10ID }
.toString() : null,
: '', child: TextField(
indication != null decoration: textFieldSelectorDecoration(
? indication['name'] model.patientAssessmentList
: null, .isNotEmpty
true), ? model
enabled: true, .patientAssessmentList[
readOnly: true, 0]
), .icdCode10ID
), .toString()
), : '',
Container( indication != null
width: MediaQuery.of(context) ? indication[
.size 'name']
.width * : null,
0.61, true),
child: InkWell( enabled: true,
onTap: indicationList != null readOnly: true,
? () { ),
Helpers.hideKeyboard( ),
context); ),
} Container(
: null, width:
child: TextField( MediaQuery.of(context)
maxLines: 3, .size
decoration: .width *
textFieldSelectorDecoration( 0.61,
model.patientAssessmentList child: InkWell(
.isNotEmpty onTap:
? model indicationList != null
.patientAssessmentList[ ? () {
0] Helpers.hideKeyboard(
.asciiDesc context);
.toString() }
: '', : null,
indication != null child: TextField(
? indication['name'] maxLines: 3,
: null, decoration: textFieldSelectorDecoration(
true), model.patientAssessmentList
enabled: true, .isNotEmpty
readOnly: true, ? model
), .patientAssessmentList[
), 0]
), .asciiDesc
], .toString()
), : '',
), indication != null
? indication[
'name']
: null,
true),
enabled: true,
readOnly: true,
),
),
),
],
)
: null),
SizedBox( SizedBox(
height: 12.0, height: 12.0,
), ),

@ -221,49 +221,69 @@ class _ProcedureScreenState extends State<ProcedureScreen> {
child: Column( child: Column(
children: [ children: [
AppText( AppText(
DateTime.parse(model DateTime.parse(model
.procedureList[ .procedureList[
0] 0]
.entityList[ .entityList[
index] index]
.orderDate) .orderDate)
.day .year
.toString(), .toString(),
color: color: model
Colors.green, .procedureList[
), 0]
.entityList[
index]
.orderType ==
0
? Color(
0xFFB9382C)
: Colors
.green),
AppText( AppText(
Helpers.getMonth(model Helpers.getMonth(model.procedureList[0].entityList[index].orderDate !=
.procedureList[ null
0] ? (DateTime.parse(model.procedureList[0].entityList[index].orderDate)
.entityList[ .month)
index] : DateTime.now()
.orderDate != .month)
null .toUpperCase(),
? (DateTime.parse(model color: model
.procedureList[ .procedureList[
0] 0]
.entityList[ .entityList[
index] index]
.orderDate) .orderType ==
.month) 0
: DateTime ? Color(
.now() 0xFFB9382C)
.month) : Colors
.toUpperCase(), .green),
color: AppText(
Colors.green, DateTime.parse(model
) .procedureList[
0]
.entityList[
index]
.orderDate)
.day
.toString(),
color: model
.procedureList[
0]
.entityList[
index]
.orderType ==
0
? Color(
0xFFB9382C)
: Colors
.green),
], ],
), ),
), ),
Expanded( Expanded(
child: Container( child: Container(
// height: MediaQuery.of(
// context)
// .size
// .height *
// 0.21,
width: MediaQuery.of( width: MediaQuery.of(
context) context)
.size .size
@ -308,17 +328,17 @@ class _ProcedureScreenState extends State<ProcedureScreen> {
13.0, 13.0,
), ),
Expanded( Expanded(
child: child: AppText(
AppText( model.procedureList[0].entityList[index].orderType ==
model.procedureList[0].entityList[index].orderType == 1
1 ? 'Routine'
? 'Routine' : 'Urgent',
: 'Urgent', fontSize:
fontSize: 13.5,
11.5, color: model.procedureList[0].entityList[index].orderType ==
color: Color( 0
0xFFB9382C), ? Color(0xFFB9382C)
), : Colors.green),
), ),
], ],
), ),

Loading…
Cancel
Save