|
|
|
|
@ -388,31 +388,31 @@ class PrescriptionItemsPage extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
padding: EdgeInsets.only(top: 16, bottom: 16, right: 21, left: 21),
|
|
|
|
|
child: DefaultButton(
|
|
|
|
|
TranslationBase.of(context).resendOrder,
|
|
|
|
|
() {
|
|
|
|
|
if (model.isMedDeliveryAllowed == false) {
|
|
|
|
|
AppToast.showErrorToast(message: TranslationBase.of(context).prescriptionDeliveryError);
|
|
|
|
|
} else {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: PrescriptionDeliveryAddressPage(
|
|
|
|
|
prescriptions: prescriptions,
|
|
|
|
|
prescriptionReportList: model.prescriptionReportList,
|
|
|
|
|
prescriptionReportEnhList: model.prescriptionReportEnhList,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
color: model.isMedDeliveryAllowed == false ? Color(0xff575757) : Color(0xff359846),
|
|
|
|
|
disabledColor: Color(0xff575757),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// Container(
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// padding: EdgeInsets.only(top: 16, bottom: 16, right: 21, left: 21),
|
|
|
|
|
// child: DefaultButton(
|
|
|
|
|
// TranslationBase.of(context).resendOrder,
|
|
|
|
|
// () {
|
|
|
|
|
// if (model.isMedDeliveryAllowed == false) {
|
|
|
|
|
// AppToast.showErrorToast(message: TranslationBase.of(context).prescriptionDeliveryError);
|
|
|
|
|
// } else {
|
|
|
|
|
// Navigator.push(
|
|
|
|
|
// context,
|
|
|
|
|
// FadePage(
|
|
|
|
|
// page: PrescriptionDeliveryAddressPage(
|
|
|
|
|
// prescriptions: prescriptions,
|
|
|
|
|
// prescriptionReportList: model.prescriptionReportList,
|
|
|
|
|
// prescriptionReportEnhList: model.prescriptionReportEnhList,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// color: model.isMedDeliveryAllowed == false ? Color(0xff575757) : Color(0xff359846),
|
|
|
|
|
// disabledColor: Color(0xff575757),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: Container(),
|
|
|
|
|
|