fix issue

merge-update-with-lab-changes
Fatimah Alshammari 4 years ago
parent ff7146e259
commit cf7dd13a83

@ -80,88 +80,91 @@ class _OrderPreviewPageState extends State<OrderPreviewPage> {
height: 10, height: 10,
), ),
widget.model.paymentCheckoutData.lacumInformation != null widget.model.paymentCheckoutData.lacumInformation != null
? Container( ? AbsorbPointer(
child: Column( absorbing: true,
children: [ child: Container(
// LakumWidget(widget.model), child: Column(
Container( children: [
color: Colors.white, // LakumWidget(widget.model),
padding: EdgeInsets.symmetric(vertical: 12, horizontal: 12), Container(
child: Row( color: Colors.white,
children: [ padding: EdgeInsets.symmetric(vertical: 12, horizontal: 12),
Row( child: Row(
children: [ children: [
SizedBox( Row(
height: 24.0, children: [
width: 24.0, SizedBox(
child: Checkbox( height: 24.0,
activeColor: CustomColors.green, width: 24.0,
value: isChecked, child: Checkbox(
onChanged: (bool value) { activeColor: CustomColors.green,
setState(() { value: isChecked,
isChecked = value; onChanged: (bool value) {
print(isChecked);
if (value){
// isChecked;
PaymentBottomWidget.isChecked = true;
print(value);
}else{
PaymentBottomWidget.isChecked = false;
}
setState(() { setState(() {
isChecked = value;
print(isChecked);
if (value){
// isChecked;
PaymentBottomWidget.isChecked = true;
print(value);
}else{
PaymentBottomWidget.isChecked = false;
}
setState(() {
});
}); });
}); },
}, ),
), ),
), Padding(
Padding( padding: const EdgeInsets.only(left: 8.0, right: 8.0),
padding: const EdgeInsets.only(left: 8.0, right: 8.0), child: Text(
child: Text( TranslationBase.of(context).useLakumPoints +
TranslationBase.of(context).useLakumPoints + " (${widget.model.paymentCheckoutData.lacumInformation.lakumInquiryInformationObjVersion.pointsBalance.toString() + " " + TranslationBase.of(context).points})",
" (${widget.model.paymentCheckoutData.lacumInformation.lakumInquiryInformationObjVersion.pointsBalance.toString() + " " + TranslationBase.of(context).points})", style: TextStyle(fontSize: 12.0, fontWeight: FontWeight.w600, letterSpacing: -0.56)),
style: TextStyle(fontSize: 12.0, fontWeight: FontWeight.w600, letterSpacing: -0.56)), ),
), ],
], ),
), Expanded(
Expanded( child: Container(
child: Container( decoration: BoxDecoration(color: Color(0x99ffffff)),
decoration: BoxDecoration(color: Color(0x99ffffff)), padding: const EdgeInsets.symmetric(horizontal: 8),
padding: const EdgeInsets.symmetric(horizontal: 8), child: Row(
child: Row( mainAxisAlignment: MainAxisAlignment.end,
mainAxisAlignment: MainAxisAlignment.end, children: [
children: [ Container(
Container( decoration: BoxDecoration(color: Color(0x99ffffff)),
decoration: BoxDecoration(color: Color(0x99ffffff)), child: Column(
child: Column( crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, children: [
children: [ Texts(
Texts( "${TranslationBase.of(context).availableBalance}",
"${TranslationBase.of(context).availableBalance}", fontSize: 12,
fontSize: 12, fontWeight: FontWeight.bold,
fontWeight: FontWeight.bold, ),
), Text(
Text( "${TranslationBase.of(context).sar + " " + widget.model.paymentCheckoutData.lacumInformation.lakumInquiryInformationObjVersion.pointsBalanceAmount.toString()}",
"${TranslationBase.of(context).sar + " " + widget.model.paymentCheckoutData.lacumInformation.lakumInquiryInformationObjVersion.pointsBalanceAmount.toString()}", style: TextStyle(fontSize: 12.0, fontWeight: FontWeight.w600, letterSpacing: -0.56)
style: TextStyle(fontSize: 12.0, fontWeight: FontWeight.w600, letterSpacing: -0.56) ),
), ],
], ),
), ),
), ],
], ),
),
),
), ),
),
], ],
),
), ),
), SizedBox(
SizedBox( height: 10,
height: 10, ),
), ],
], ),
), ),
) )
: Container(), : Container(),
Container( Container(
color: Colors.white, color: Colors.white,

Loading…
Cancel
Save