|
|
|
|
@ -26,6 +26,7 @@ import 'package:doctor_app_flutter/locator.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/procedures/procedure_type.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/utils/dr_app_toast_msg.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/utils/utils.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/loader/gif_loader_dialog_utils.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
|
|
|
|
|
class ProcedureViewModel extends BaseViewModel {
|
|
|
|
|
@ -374,6 +375,9 @@ class ProcedureViewModel extends BaseViewModel {
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
Utils.showErrorToast(error);
|
|
|
|
|
Future.delayed(Duration(seconds: 1), () {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(AppGlobal.CONTEX);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|