|
|
|
|
@ -19,6 +19,8 @@ class PrescriptionsWidget extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
|
|
|
|
|
ProjectViewModel projectProvider = Provider.of(context);
|
|
|
|
|
return BaseView<PrescriptionViewModel>(
|
|
|
|
|
onModelReady: (model) async {
|
|
|
|
|
if (Provider.of<ProjectViewModel>(context, listen: false).isLogin) {
|
|
|
|
|
@ -98,7 +100,7 @@ class PrescriptionsWidget extends StatelessWidget {
|
|
|
|
|
color: Colors.green,
|
|
|
|
|
borderRadius: BorderRadius.circular(30.0)),
|
|
|
|
|
child: Text(
|
|
|
|
|
model.languageID == "ar"
|
|
|
|
|
projectProvider.isArabic
|
|
|
|
|
? model.prescriptionsList[index].isInOutPatientDescriptionN.toString()
|
|
|
|
|
: model.prescriptionsList[index].isInOutPatientDescription.toString(),
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|