Blood Denote

merge-requests/226/merge
Amjad amireh 5 years ago
parent 5e50c0dc32
commit 0ec39920f0

@ -389,51 +389,53 @@ class _BloodDonationPageState extends State<BloodDonationPage> {
),
),
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));
// },
),
)),
);

Loading…
Cancel
Save