showBusyStatusAlert method
dynamic
showBusyStatusAlert(
- Function? function
)
Implementation
showBusyStatusAlert(Function? function) {
DialogUtils.showAlert(
dialogStyle: AppStyleConfig.dialogStyle,
message: getTranslated("disableBusy"),
actions: [
TextButton(
style: AppStyleConfig.dialogStyle.buttonStyle,
onPressed: () {
NavUtils.back();
},
child: Text(getTranslated("no"))),
TextButton(
style: AppStyleConfig.dialogStyle.buttonStyle,
onPressed: () async {
NavUtils.back();
await Mirrorfly.enableDisableBusyStatus(
enable: false,
flyCallBack: (FlyResponse response) {
if (response.isSuccess) {
if (function != null) {
function();
}
}
});
},
child: Text(getTranslated("yes"))),
]);
}