|
|
|
|
@ -5,6 +5,7 @@ import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/theme/colors.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_toast.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/utils_new.dart';
|
|
|
|
|
@ -344,59 +345,6 @@ class InsuranceCardUpdateDetails extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
// bottomSheet: Container(
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
// height: insuranceCardDetailsModel.isEmpty ? MediaQuery.of(context).size.height * 0.14 : MediaQuery.of(context).size.height * 0.21,
|
|
|
|
|
// child: Container(
|
|
|
|
|
// margin: EdgeInsets.only(left: 8, right: 8),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// children: [
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 8,
|
|
|
|
|
// ),
|
|
|
|
|
// if (insuranceCardDetailsModel.isEmpty)
|
|
|
|
|
// SecondaryButton(
|
|
|
|
|
// textColor: Colors.white,
|
|
|
|
|
// label: TranslationBase.of(context).scanNow.toUpperCase(),
|
|
|
|
|
// color: Theme.of(context).primaryColor,
|
|
|
|
|
// small: true,
|
|
|
|
|
// onTap: () async {
|
|
|
|
|
// confirmAttachInsuranceCardImageDialogDialog(context: context, name: name, fileNo: patientID.toString(), model: model);
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// if (insuranceCardDetailsModel.isNotEmpty)
|
|
|
|
|
// SecondaryButton(
|
|
|
|
|
// textColor: Colors.white,
|
|
|
|
|
// label: TranslationBase.of(context).agree.toUpperCase(),
|
|
|
|
|
// color: Theme.of(context).primaryColor,
|
|
|
|
|
// onTap: () async {
|
|
|
|
|
// GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
// await model.uploadInsuranceCard(patientIdentificationID: patientIdentificationID, patientID: patientID);
|
|
|
|
|
// GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
// if (model.state == ViewState.ErrorLocal) {
|
|
|
|
|
// AppToast.showErrorToast(message: model.error);
|
|
|
|
|
// } else {
|
|
|
|
|
// AppToast.showSuccessToast(message: TranslationBase.of(context).requestSent);
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// if (insuranceCardDetailsModel.isNotEmpty)
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 12,
|
|
|
|
|
// ),
|
|
|
|
|
// if (insuranceCardDetailsModel.isNotEmpty)
|
|
|
|
|
// SecondaryButton(
|
|
|
|
|
// textColor: Colors.white,
|
|
|
|
|
// label: TranslationBase.of(context).disagree.toUpperCase(),
|
|
|
|
|
// color: Colors.grey[800],
|
|
|
|
|
// onTap: () async {
|
|
|
|
|
// confirmAttachInsuranceCardImageDialogDialog(context: context, name: name, fileNo: patientID.toString(), model: model);
|
|
|
|
|
// },
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|