|
|
|
@ -74,16 +74,18 @@ class _AdvancePaymentPageState extends State<AdvancePaymentPage> {
|
|
|
|
showNewAppBarTitle: true,
|
|
|
|
showNewAppBarTitle: true,
|
|
|
|
showNewAppBar: true,
|
|
|
|
showNewAppBar: true,
|
|
|
|
backgroundColor: CustomColors.appBackgroudGreyColor,
|
|
|
|
backgroundColor: CustomColors.appBackgroudGreyColor,
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
body: Column(
|
|
|
|
physics: ScrollPhysics(),
|
|
|
|
children: [
|
|
|
|
child: Container(
|
|
|
|
Expanded(
|
|
|
|
margin: EdgeInsets.all(12),
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
|
|
|
padding: EdgeInsets.all(21),
|
|
|
|
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
TranslationBase.of(context).advancePaymentLabel,
|
|
|
|
TranslationBase.of(context).advancePaymentLabel,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 14,
|
|
|
|
fontSize: 14,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
@ -258,14 +260,14 @@ class _AdvancePaymentPageState extends State<AdvancePaymentPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
bottomSheet: Container(
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
color: Colors.white,
|
|
|
|
color: Theme.of(context).scaffoldBackgroundColor,
|
|
|
|
padding: EdgeInsets.only(top: 16, bottom: 16, right: 21, left: 21),
|
|
|
|
padding: EdgeInsets.all(12),
|
|
|
|
|
|
|
|
child: DefaultButton(
|
|
|
|
child: DefaultButton(
|
|
|
|
TranslationBase.of(context).submit,
|
|
|
|
TranslationBase.of(context).submit,
|
|
|
|
(amount.isEmpty || _fileTextController.text.isEmpty || _selectedHospital == null) ? null :
|
|
|
|
(amount.isEmpty || _fileTextController.text.isEmpty || _selectedHospital == null)
|
|
|
|
() {
|
|
|
|
? null
|
|
|
|
|
|
|
|
: () {
|
|
|
|
var mobileNum;
|
|
|
|
var mobileNum;
|
|
|
|
var patientName;
|
|
|
|
var patientName;
|
|
|
|
|
|
|
|
|
|
|
|
@ -296,11 +298,14 @@ class _AdvancePaymentPageState extends State<AdvancePaymentPage> {
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
if (model.state != ViewState.Error && model.state != ViewState.ErrorLocal) {
|
|
|
|
if (model.state != ViewState.Error && model.state != ViewState.ErrorLocal) {
|
|
|
|
Utils.hideKeyboard(context);
|
|
|
|
Utils.hideKeyboard(context);
|
|
|
|
Navigator.push(context, FadePage(page: PaymentMethod(
|
|
|
|
Navigator.push(
|
|
|
|
onSelectedMethod: (String metohd) {
|
|
|
|
context,
|
|
|
|
|
|
|
|
FadePage(
|
|
|
|
|
|
|
|
page: PaymentMethod(onSelectedMethod: (String metohd) {
|
|
|
|
setState(() {});
|
|
|
|
setState(() {});
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
))).then(
|
|
|
|
),
|
|
|
|
|
|
|
|
).then(
|
|
|
|
(value) {
|
|
|
|
(value) {
|
|
|
|
Navigator.push(
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
@ -318,9 +323,14 @@ class _AdvancePaymentPageState extends State<AdvancePaymentPage> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
disabledColor: Colors.grey,
|
|
|
|
color: Color(0xffD02127),
|
|
|
|
|
|
|
|
textColor: Colors.white,
|
|
|
|
|
|
|
|
disabledColor: Color(0xffEAEAEA),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|