Blood Denote

merge-update-with-lab-changes
Amjad amireh 6 years ago
parent 5e50c0dc32
commit 0ec39920f0

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

Loading…
Cancel
Save