|
|
|
|
@ -75,34 +75,34 @@ class _LaboratoryResultPageState extends State<LaboratoryResultPage> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
bottomSheet: Container(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.081,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
padding: EdgeInsets.all(12.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.9,
|
|
|
|
|
child: DefaultButton(
|
|
|
|
|
TranslationBase.of(context).downloadReport,
|
|
|
|
|
() async {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
await model.sendLabReportEmail(patientLabOrder: widget.patientLabOrders, mes: TranslationBase.of(context).sendSuc, userObj: projectViewModel.user, isVidaPlus: Utils.isVidaPlusProject(projectViewModel, num.parse(widget.patientLabOrders.projectID)), isDownload: true);
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
try {
|
|
|
|
|
String path = await _createFileFromString(model.labReportPDF, "pdf");
|
|
|
|
|
OpenFilex.open(path);
|
|
|
|
|
} catch (ex) {
|
|
|
|
|
AppToast.showErrorToast(message: "Cannot open file.");
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
textColor: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// bottomSheet: Container(
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// height: MediaQuery.of(context).size.height * 0.081,
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
// padding: EdgeInsets.all(12.0),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// Container(
|
|
|
|
|
// width: MediaQuery.of(context).size.width * 0.9,
|
|
|
|
|
// child: DefaultButton(
|
|
|
|
|
// TranslationBase.of(context).downloadReport,
|
|
|
|
|
// () async {
|
|
|
|
|
// GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
// await model.sendLabReportEmail(patientLabOrder: widget.patientLabOrders, mes: TranslationBase.of(context).sendSuc, userObj: projectViewModel.user, isVidaPlus: Utils.isVidaPlusProject(projectViewModel, num.parse(widget.patientLabOrders.projectID)), isDownload: true);
|
|
|
|
|
// GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
// try {
|
|
|
|
|
// String path = await _createFileFromString(model.labReportPDF, "pdf");
|
|
|
|
|
// OpenFilex.open(path);
|
|
|
|
|
// } catch (ex) {
|
|
|
|
|
// AppToast.showErrorToast(message: "Cannot open file.");
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// textColor: Colors.white,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|