|
|
|
|
@ -26,7 +26,8 @@ class ProcedureCard extends StatelessWidget {
|
|
|
|
|
this.categoryID,
|
|
|
|
|
this.categoryName,
|
|
|
|
|
this.patient,
|
|
|
|
|
this.doctorID, this.isInpatient = false,
|
|
|
|
|
this.doctorID,
|
|
|
|
|
this.isInpatient = false,
|
|
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -47,22 +48,20 @@ class ProcedureCard extends StatelessWidget {
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * .20,
|
|
|
|
|
height: MediaQuery.of(context).size.height * .212,
|
|
|
|
|
width: 5,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
topLeft: Radius.circular(10),
|
|
|
|
|
bottomLeft: Radius.circular(10),
|
|
|
|
|
),
|
|
|
|
|
color:
|
|
|
|
|
entityList.orderType == 0 ? Colors.black : Colors.red[500],
|
|
|
|
|
color: entityList.orderType == 0 ? Colors.black : Colors.red[500],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
left: projectViewModel.isArabic ? 0 : 15,
|
|
|
|
|
right: projectViewModel.isArabic ? 15 : 0),
|
|
|
|
|
left: projectViewModel.isArabic ? 0 : 15, right: projectViewModel.isArabic ? 15 : 0),
|
|
|
|
|
child: InkWell(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
@ -75,12 +74,8 @@ class ProcedureCard extends StatelessWidget {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
entityList.orderType == 0
|
|
|
|
|
? 'Routine'
|
|
|
|
|
: 'Urgent',
|
|
|
|
|
color: entityList.orderType == 0
|
|
|
|
|
? Colors.black
|
|
|
|
|
: Colors.red[800],
|
|
|
|
|
entityList.orderType == 0 ? 'Routine' : 'Urgent',
|
|
|
|
|
color: entityList.orderType == 0 ? Colors.black : Colors.red[800],
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
@ -144,8 +139,7 @@ class ProcedureCard extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
|
left: 0, top: 25, right: 0, bottom: 0),
|
|
|
|
|
margin: EdgeInsets.only(left: 0, top: 25, right: 0, bottom: 0),
|
|
|
|
|
padding: EdgeInsets.only(left: 4.0, right: 4.0),
|
|
|
|
|
child: Container(
|
|
|
|
|
width: 40,
|
|
|
|
|
@ -156,9 +150,7 @@ class ProcedureCard extends StatelessWidget {
|
|
|
|
|
'assets/images/male_avatar.png',
|
|
|
|
|
height: 25,
|
|
|
|
|
width: 30,
|
|
|
|
|
errorBuilder: (BuildContext context,
|
|
|
|
|
Object exception,
|
|
|
|
|
StackTrace stackTrace) {
|
|
|
|
|
errorBuilder: (BuildContext context, Object exception, StackTrace stackTrace) {
|
|
|
|
|
return Text('No Image');
|
|
|
|
|
},
|
|
|
|
|
))),
|
|
|
|
|
@ -166,8 +158,7 @@ class ProcedureCard extends StatelessWidget {
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 4,
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
|
left: 10, top: 25, right: 10, bottom: 0),
|
|
|
|
|
margin: EdgeInsets.only(left: 10, top: 25, right: 10, bottom: 0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
@ -203,7 +194,9 @@ class ProcedureCard extends StatelessWidget {
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if ((entityList.categoryID == 2 || entityList.categoryID == 4) && doctorID == entityList.doctorID && !isInpatient)
|
|
|
|
|
if ((entityList.categoryID == 2 || entityList.categoryID == 4) &&
|
|
|
|
|
doctorID == entityList.doctorID &&
|
|
|
|
|
!isInpatient)
|
|
|
|
|
InkWell(
|
|
|
|
|
child: Icon(DoctorApp.edit),
|
|
|
|
|
onTap: onTap,
|
|
|
|
|
|