jira bugs

merge-requests/327/head
hussam al-habibeh 5 years ago
parent 3250f33b43
commit 066ac94d4a

@ -209,42 +209,30 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
0.09, 0.09,
child: Column( child: Column(
children: [ children: [
// AppText( AppText(
// (DateTime.parse(model.prescriptionList[0].entityList[index].createdOn) != (DateTime.parse(model.prescriptionList[0].entityList[index].createdOn) !=
// null null
// ? (DateTime.parse(model.prescriptionList[0].entityList[index].createdOn).year) ? (DateTime.parse(model.prescriptionList[0].entityList[index].createdOn).year)
// .toString() .toString()
// : DateTime.now() : DateTime.now()
// .year) .year)
// .toString(), .toString(),
// color: Colors color: Colors
// .green, .green,
// fontSize: fontSize:
// 13.5, 13.5,
// ), ),
// AppText( AppText(
// Helpers.getMonth(model.prescriptionList[0].entityList[index].createdOn != Helpers.getMonth(model.prescriptionList[0].entityList[index].createdOn !=
// null null
// ? (DateTime.parse(model.prescriptionList[0].entityList[index].createdOn) ? (DateTime.parse(model.prescriptionList[0].entityList[index].createdOn)
// .month) .month)
// : DateTime.now() : DateTime.now()
// .month) .month)
// .toUpperCase(), .toUpperCase(),
// color: Colors color: Colors
// .green, .green,
// ), ),
// AppText(
// DateTime.parse(model
// .prescriptionList[
// 0]
// .entityList[
// index]
// .createdOn)
// .day
// .toString(),
// color: Colors
// .green,
// ),
AppText( AppText(
DateTime.parse(model DateTime.parse(model
.prescriptionList[ .prescriptionList[
@ -252,6 +240,18 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
.entityList[ .entityList[
index] index]
.createdOn) .createdOn)
.day
.toString(),
color: Colors
.green,
),
AppText(
Helpers.getTimeFormated(DateTime.parse(model
.prescriptionList[
0]
.entityList[
index]
.createdOn))
.toString(), .toString(),
color: Colors color: Colors
.green, .green,
@ -446,7 +446,7 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
Row( Row(
children: [ children: [
AppText( AppText(
'BOX Quantity: ', 'pharmacy Intervention ',
fontWeight: fontWeight:
FontWeight FontWeight
.w700, .w700,

@ -303,6 +303,14 @@ class Helpers {
return ""; return "";
} }
static String getTimeFormated(DateTime dateTime) {
print(dateTime);
if (dateTime != null)
return dateTime.hour.toString() + ":" + dateTime.minute.toString();
else
return "";
}
/* /*
*@author: Mohammad Aljammal *@author: Mohammad Aljammal
*@Date:26/5/2020 *@Date:26/5/2020

Loading…
Cancel
Save