disable lakum on check out page

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

@ -1,3 +1,5 @@
import 'dart:ui';
import 'package:diplomaticquarterapp/core/model/pharmacies/Addresses.dart'; import 'package:diplomaticquarterapp/core/model/pharmacies/Addresses.dart';
import 'package:diplomaticquarterapp/core/viewModels/pharmacyModule/OrderPreviewViewModel.dart'; import 'package:diplomaticquarterapp/core/viewModels/pharmacyModule/OrderPreviewViewModel.dart';
import 'package:diplomaticquarterapp/pages/pharmacies/screens/cart-page/payment_bottom_widget.dart'; import 'package:diplomaticquarterapp/pages/pharmacies/screens/cart-page/payment_bottom_widget.dart';
@ -82,88 +84,96 @@ class _OrderPreviewPageState extends State<OrderPreviewPage> {
widget.model.paymentCheckoutData.lacumInformation != null widget.model.paymentCheckoutData.lacumInformation != null
? AbsorbPointer( ? AbsorbPointer(
absorbing: true, absorbing: true,
child: Container( child: Stack(
child: Column( children: [
children: [ 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,
width: 24.0,
child: Checkbox(
activeColor: CustomColors.green,
value: isChecked,
onChanged: (bool value) {
setState(() {
isChecked = value;
print(isChecked);
if (value){
// isChecked;
PaymentBottomWidget.isChecked = true;
print(value);
}else{
PaymentBottomWidget.isChecked = false;
}
setState(() {
});
});
},
),
),
Padding(
padding: const EdgeInsets.only(left: 8.0, right: 8.0),
child: Text(
TranslationBase.of(context).useLakumPoints +
" (${widget.model.paymentCheckoutData.lacumInformation.lakumInquiryInformationObjVersion.pointsBalance.toString() + " " + TranslationBase.of(context).points})",
style: TextStyle(fontSize: 12.0, fontWeight: FontWeight.w600, letterSpacing: -0.56)),
),
],
),
Expanded(
child: Container(
decoration: BoxDecoration(color: Color(0x99ffffff)),
padding: const EdgeInsets.symmetric(horizontal: 8),
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
Container( SizedBox(
decoration: BoxDecoration(color: Color(0x99ffffff)), height: 24.0,
child: Column( width: 24.0,
crossAxisAlignment: CrossAxisAlignment.start, child: Checkbox(
children: [ activeColor: CustomColors.green,
Texts( value: isChecked,
"${TranslationBase.of(context).availableBalance}", onChanged: (bool value) {
fontSize: 12, setState(() {
fontWeight: FontWeight.bold, isChecked = value;
), print(isChecked);
Text( if (value){
"${TranslationBase.of(context).sar + " " + widget.model.paymentCheckoutData.lacumInformation.lakumInquiryInformationObjVersion.pointsBalanceAmount.toString()}", // isChecked;
style: TextStyle(fontSize: 12.0, fontWeight: FontWeight.w600, letterSpacing: -0.56) PaymentBottomWidget.isChecked = true;
), print(value);
], }else{
PaymentBottomWidget.isChecked = false;
}
setState(() {
});
});
},
), ),
), ),
Padding(
padding: const EdgeInsets.only(left: 8.0, right: 8.0),
child: Text(
TranslationBase.of(context).useLakumPoints +
" (${widget.model.paymentCheckoutData.lacumInformation.lakumInquiryInformationObjVersion.pointsBalance.toString() + " " + TranslationBase.of(context).points})",
style: TextStyle(fontSize: 12.0, fontWeight: FontWeight.w600, letterSpacing: -0.56)),
),
], ],
), ),
Expanded(
child: Container(
decoration: BoxDecoration(color: Color(0x99ffffff)),
padding: const EdgeInsets.symmetric(horizontal: 8),
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Container(
decoration: BoxDecoration(color: Color(0x99ffffff)),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Texts(
"${TranslationBase.of(context).availableBalance}",
fontSize: 12,
fontWeight: FontWeight.bold,
),
Text(
"${TranslationBase.of(context).sar + " " + widget.model.paymentCheckoutData.lacumInformation.lakumInquiryInformationObjVersion.pointsBalanceAmount.toString()}",
style: TextStyle(fontSize: 12.0, fontWeight: FontWeight.w600, letterSpacing: -0.56)
),
],
),
),
],
),
),
),
), ],
), ),
),
], SizedBox(
), height: 10,
), ),
SizedBox( ],
height: 10,
), ),
], ),
), Container(
), height: MediaQuery.of(context).size.height * .10,
color: Colors.white.withOpacity(0.6),
)
],
),
) )
: Container(), : Container(),
Container( Container(

Loading…
Cancel
Save