|
|
|
|
@ -9,6 +9,7 @@ import 'package:doctor_app_flutter/util/date-utils.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/add-order/addNewOrder.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-header-new-design-app-bar.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/divider_with_spaces_around.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/errors/dr_app_embedded_error.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/loader/gif_loader_dialog_utils.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
@ -171,6 +172,7 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
|
|
|
|
|
onTap: () async {
|
|
|
|
|
showMyDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
actionName: "cancel",
|
|
|
|
|
confirmFun: () async {
|
|
|
|
|
GifLoaderDialogUtils
|
|
|
|
|
.showMyDialog(
|
|
|
|
|
@ -241,7 +243,7 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () async {
|
|
|
|
|
showMyDialog(context: context, confirmFun: () async{
|
|
|
|
|
showMyDialog(context: context, actionName: "verify",confirmFun: () async{
|
|
|
|
|
GifLoaderDialogUtils
|
|
|
|
|
.showMyDialog(context);
|
|
|
|
|
UpdateNoteReqModel reqModel =
|
|
|
|
|
@ -400,7 +402,7 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
showMyDialog({BuildContext context, Function confirmFun, isCancel = true}) {
|
|
|
|
|
showMyDialog({BuildContext context, Function confirmFun, String actionName}) {
|
|
|
|
|
showDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
child: Center(
|
|
|
|
|
@ -412,7 +414,7 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
|
|
|
|
|
height: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height * 0.5,
|
|
|
|
|
.height * 0.3,
|
|
|
|
|
child: AppScaffold(
|
|
|
|
|
isShowAppBar: false,
|
|
|
|
|
body: Container(
|
|
|
|
|
@ -420,25 +422,32 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
|
|
|
|
|
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
// SizedBox(height: 20,),
|
|
|
|
|
SizedBox(height: 5,),
|
|
|
|
|
AppText(
|
|
|
|
|
"Confirm", fontWeight: FontWeight.w600,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontSize: 16,),
|
|
|
|
|
SizedBox(height: 5,),
|
|
|
|
|
DividerWithSpacesAround(),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(20),
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
child: Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
'Are you sure you want to do this action?',
|
|
|
|
|
'Are you sure you want $actionName this order?',
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height * 0.2,),
|
|
|
|
|
|
|
|
|
|
SizedBox(height: 30,),
|
|
|
|
|
DividerWithSpacesAround(),
|
|
|
|
|
// SizedBox(height: 30,),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
|