diff --git a/lib/pages/Blood/blood_donation.dart b/lib/pages/Blood/blood_donation.dart index bc262ec3..a7a1d089 100644 --- a/lib/pages/Blood/blood_donation.dart +++ b/lib/pages/Blood/blood_donation.dart @@ -389,51 +389,53 @@ class _BloodDonationPageState extends State { ), ), bottomSheet: Container( - height: MediaQuery.of(context).size.height * 0.1, + height: MediaQuery.of(context).size.height * 0.12, width: double.infinity, + padding: EdgeInsets.all(12), child: SecondaryButton( textColor: Colors.white, - label: TranslationBase.of(context).submit, - disabled: amount.isEmpty || - _fileTextController.text.isEmpty || - _selectedHospital == null, - onTap: () { - advanceModel.fileNumber = _fileTextController.text; - // advanceModel.hospitalsModel = _selectedHospital; - advanceModel.citiessModel = _selectedHospital; - advanceModel.note = _notesTextController.text; - advanceModel.email = email ?? model.user.emailAddress; - advanceModel.amount = amount; - - model.getPatientInfoByPatientIDAndMobileNumber().then((value) { - if (model.state != ViewState.Error && - model.state != ViewState.ErrorLocal) { - Utils.hideKeyboard(context); - Navigator.push( - context, - MaterialPageRoute( - builder: (context) => PaymentMethod())).then( - (value) { - Navigator.push( - context, - FadePage( - page: ConfirmPaymentPage( - advanceModel: advanceModel, - selectedPaymentMethod: value, - patientInfoAndMobileNumber: - model.patientInfoAndMobileNumber, - authenticatedUser: authUser, - ), - ), - ); - }, - ); - } - }).showProgressBar( - text: "Loading", - backgroundColor: Colors.blue.withOpacity(0.6)); - }, + color: checkedValue== false ?Colors.white24:Color.fromRGBO(63, 72, 74, 1,), + + label: "Save", + // + + // onTap: () { + // advanceModel.fileNumber = _fileTextController.text; + // // advanceModel.hospitalsModel = _selectedHospital; + // advanceModel.citiessModel = _selectedHospital; + // advanceModel.note = _notesTextController.text; + // advanceModel.email = email ?? model.user.emailAddress; + // advanceModel.amount = amount; + // + // model.getPatientInfoByPatientIDAndMobileNumber().then((value) { + // if (model.state != ViewState.Error && + // model.state != ViewState.ErrorLocal) { + // Utils.hideKeyboard(context); + // Navigator.push( + // context, + // MaterialPageRoute( + // builder: (context) => PaymentMethod())).then( + // (value) { + // Navigator.push( + // context, + // FadePage( + // page: ConfirmPaymentPage( + // advanceModel: advanceModel, + // selectedPaymentMethod: value, + // patientInfoAndMobileNumber: + // model.patientInfoAndMobileNumber, + // authenticatedUser: authUser, + // ), + // ), + // ); + // }, + // ); + // } + // }).showProgressBar( + // text: "Loading", + // backgroundColor: Colors.blue.withOpacity(0.6)); + // }, ), )), );