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

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

Loading…
Cancel
Save