|
|
|
@ -576,7 +576,7 @@ class Utils {
|
|
|
|
onTap: () => projectViewModel.havePrivilege(12) ? Navigator.push(context, FadePage(page: HomePrescriptionsPage())) : null,
|
|
|
|
onTap: () => projectViewModel.havePrivilege(12) ? Navigator.push(context, FadePage(page: HomePrescriptionsPage())) : null,
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
title: TranslationBase.of(context).medicines,
|
|
|
|
title: TranslationBase.of(context).medicines,
|
|
|
|
imagePath: 'prescription_icon.png',
|
|
|
|
imagePath: 'medicine_prescription.svg',
|
|
|
|
subTitle: TranslationBase.of(context).medicinesSubtitle,
|
|
|
|
subTitle: TranslationBase.of(context).medicinesSubtitle,
|
|
|
|
isEnable: projectViewModel.havePrivilege(12),
|
|
|
|
isEnable: projectViewModel.havePrivilege(12),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -621,7 +621,7 @@ class Utils {
|
|
|
|
return route.runtimeType == equalsTo;
|
|
|
|
return route.runtimeType == equalsTo;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static Widget tableColumnTitle(String text) {
|
|
|
|
static Widget tableColumnTitle(String text, {bool showDivider = true}) {
|
|
|
|
return Column(
|
|
|
|
return Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
@ -631,8 +631,8 @@ class Utils {
|
|
|
|
text,
|
|
|
|
text,
|
|
|
|
style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600, color: Color(0xff2E303A), letterSpacing: -0.48, height: 18 / 12),
|
|
|
|
style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600, color: Color(0xff2E303A), letterSpacing: -0.48, height: 18 / 12),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(height: 6),
|
|
|
|
SizedBox(height: 5),
|
|
|
|
Divider(
|
|
|
|
if(showDivider) Divider(
|
|
|
|
height: 1,
|
|
|
|
height: 1,
|
|
|
|
color: Color(0xff2E303A),
|
|
|
|
color: Color(0xff2E303A),
|
|
|
|
thickness: 1,
|
|
|
|
thickness: 1,
|
|
|
|
|