|
|
|
|
@ -23,6 +23,7 @@ import 'package:diplomaticquarterapp/uitl/utils.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/text/app_texts_widget.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
@ -77,7 +78,7 @@ class _BloodDonationPageState extends State<BloodDonationPage> {
|
|
|
|
|
onModelReady: (model) => model.getCities(),//model.getHospitals(),
|
|
|
|
|
builder: (_, model, w) => AppScaffold(
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
appBarTitle: "Blood Donation",//TranslationBase.of(context).advancePayment,
|
|
|
|
|
appBarTitle: TranslationBase.of(context).bloodDonation,//TranslationBase.of(context).advancePayment,
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
|
physics: ScrollPhysics(),
|
|
|
|
|
child: Container(
|
|
|
|
|
@ -85,9 +86,8 @@ class _BloodDonationPageState extends State<BloodDonationPage> {
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
// TranslationBase.of(context).advancePaymentLabel,
|
|
|
|
|
"Enter the required information, In order to register for Blood Donation Service",//+model.user.firstName,
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).bloodInstruction,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
@ -188,55 +188,24 @@ class _BloodDonationPageState extends State<BloodDonationPage> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// if (beneficiaryType == BeneficiaryType.MyFamilyFiles)
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 12,
|
|
|
|
|
// ),
|
|
|
|
|
// if (beneficiaryType == BeneficiaryType.MyFamilyFiles)
|
|
|
|
|
// InkWell(
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// model.getFamilyFiles().then((value) {
|
|
|
|
|
// confirmSelectFamilyDialog(model
|
|
|
|
|
// .getAllSharedRecordsByStatusResponse
|
|
|
|
|
// .getAllSharedRecordsByStatusList);
|
|
|
|
|
// }).showProgressBar(
|
|
|
|
|
// text: "Loading",
|
|
|
|
|
// backgroundColor: Colors.blue.withOpacity(0.6));
|
|
|
|
|
// },
|
|
|
|
|
// child: Container(
|
|
|
|
|
// padding: EdgeInsets.all(12),
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
// height: 65,
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
// borderRadius: BorderRadius.circular(12),
|
|
|
|
|
// color: Colors.white),
|
|
|
|
|
// child: Row(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
// children: [
|
|
|
|
|
// Texts(getFamilyMembersName()),
|
|
|
|
|
// Icon(Icons.arrow_drop_down)
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 12,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
child: Text(" To view the terms and conditions "),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: MediaQuery.of(context).size.height * 0.10,
|
|
|
|
|
),
|
|
|
|
|
AppText(TranslationBase.of(context).bloodTermsNcondition),
|
|
|
|
|
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// width: MediaQuery.of(context).size.height * 0.10,
|
|
|
|
|
// ),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.of(context).push(MaterialPageRoute(
|
|
|
|
|
builder: (BuildContext context) => UserAgreementPage()));
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
child: Texts(" Click here ",color: Colors.blue,),
|
|
|
|
|
child: Texts(" Click here ", color: Colors.blue,),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
@ -269,77 +238,7 @@ class _BloodDonationPageState extends State<BloodDonationPage> {
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
// NewTextFields(
|
|
|
|
|
// hintText: TranslationBase.of(context).fileNumber,
|
|
|
|
|
// controller: _fileTextController,
|
|
|
|
|
// ),
|
|
|
|
|
// if (beneficiaryType == BeneficiaryType.OtherAccount)
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 12,
|
|
|
|
|
// ),
|
|
|
|
|
// if (beneficiaryType == BeneficiaryType.OtherAccount)
|
|
|
|
|
// InkWell(
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// if (_fileTextController.text.isNotEmpty)
|
|
|
|
|
// model
|
|
|
|
|
// .getPatientInfoByPatientID(
|
|
|
|
|
// id: _fileTextController.text)
|
|
|
|
|
// .then((value) {
|
|
|
|
|
// confirmSelectPatientDialog(model.patientInfoList);
|
|
|
|
|
// }).showProgressBar(
|
|
|
|
|
// text: "Loading",
|
|
|
|
|
// backgroundColor:
|
|
|
|
|
// Colors.blue.withOpacity(0.6));
|
|
|
|
|
// else
|
|
|
|
|
// AppToast.showErrorToast(
|
|
|
|
|
// message: 'Please Enter The File Number');
|
|
|
|
|
// },
|
|
|
|
|
// child: Container(
|
|
|
|
|
// padding: EdgeInsets.all(12),
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
// height: 65,
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
// borderRadius: BorderRadius.circular(12),
|
|
|
|
|
// color: Colors.white),
|
|
|
|
|
// child: Row(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
// children: [
|
|
|
|
|
// Texts(getPatientName()),
|
|
|
|
|
// Icon(Icons.arrow_drop_down)
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 12,
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
|
|
// NewTextFields(
|
|
|
|
|
// hintText: TranslationBase.of(context).amount,
|
|
|
|
|
// keyboardType: TextInputType.number,
|
|
|
|
|
// onChanged: (value) {
|
|
|
|
|
// setState(() {
|
|
|
|
|
// amount = value;
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 12,
|
|
|
|
|
// ),
|
|
|
|
|
// NewTextFields(
|
|
|
|
|
// hintText: TranslationBase.of(context).depositorEmail,
|
|
|
|
|
// initialValue: model.user.emailAddress,
|
|
|
|
|
// onChanged: (value) {
|
|
|
|
|
// email = value;
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 12,
|
|
|
|
|
// ),
|
|
|
|
|
// NewTextFields(
|
|
|
|
|
// hintText: TranslationBase.of(context).notes,
|
|
|
|
|
// controller: _notesTextController,
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
@ -393,9 +292,8 @@ class _BloodDonationPageState extends State<BloodDonationPage> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
bottomSheet: Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.12,
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.10,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
|
|
padding: EdgeInsets.all(12),
|
|
|
|
|
child: SecondaryButton(
|
|
|
|
|
textColor: Colors.white,
|
|
|
|
|
|