Merge branch 'development_new_design_2.0' of https://gitlab.com/Cloud_Solution/diplomatic-quarter into development_new_design_2.0

merge-requests/437/merge
haroon amjad 3 years ago
commit 2ed8008790

@ -12,8 +12,8 @@ const PACKAGES_PRODUCTS = '/api/products';
const PACKAGES_CUSTOMER = '/api/customers'; const PACKAGES_CUSTOMER = '/api/customers';
const PACKAGES_SHOPPING_CART = '/api/shopping_cart_items'; const PACKAGES_SHOPPING_CART = '/api/shopping_cart_items';
const PACKAGES_ORDERS = '/api/orders'; const PACKAGES_ORDERS = '/api/orders';
const BASE_URL = 'https://uat.hmgwebservices.com/'; // const BASE_URL = 'https://uat.hmgwebservices.com/';
// const BASE_URL = 'https://hmgwebservices.com/'; const BASE_URL = 'https://hmgwebservices.com/';
// Pharmacy UAT URLs // Pharmacy UAT URLs
const BASE_PHARMACY_URL = 'https://uat.hmgwebservices.com/epharmacy/api/'; const BASE_PHARMACY_URL = 'https://uat.hmgwebservices.com/epharmacy/api/';

@ -33,11 +33,11 @@ class _PaymentMethodState extends State<PaymentMethod> {
child: Container( child: Container(
child: Column( child: Column(
mainAxisSize: MainAxisSize.max, mainAxisSize: MainAxisSize.max,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Container( Container(
margin: EdgeInsets.fromLTRB(0.0, 15.0, 0.0, 0.0), margin: EdgeInsets.fromLTRB(4, 15.0, 4, 0.0),
alignment: Alignment.center,
child: Text(TranslationBase.of(context).selectPaymentOption, style: TextStyle(fontSize: 18.0, fontWeight: FontWeight.bold)), child: Text(TranslationBase.of(context).selectPaymentOption, style: TextStyle(fontSize: 18.0, fontWeight: FontWeight.bold)),
), ),
Container( Container(
@ -52,10 +52,18 @@ class _PaymentMethodState extends State<PaymentMethod> {
color: Colors.white, color: Colors.white,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10), borderRadius: BorderRadius.circular(10),
side: selectedPaymentMethod == "MADA" ? BorderSide(color: Colors.green, width: 5.0) : BorderSide(color: Colors.transparent, width: 0.0), side: selectedPaymentMethod == "MADA" ? BorderSide(color: Colors.green, width: 2.0) : BorderSide(color: Colors.transparent, width: 0.0),
), ),
child: Padding(
padding: const EdgeInsets.all(12.0),
child: Row( child: Row(
children: [ children: [
Container(
width: 24,
height: 24,
decoration: containerColorRadiusBorderWidth(selectedPaymentMethod == "MADA" ? CustomColors.accentColor : Colors.transparent, 100, Colors.grey, 0.5),
),
mWidth(12),
Container( Container(
height: 60.0, height: 60.0,
width: 60, width: 60,
@ -70,12 +78,26 @@ class _PaymentMethodState extends State<PaymentMethod> {
fontSize: 14, fontSize: 14,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
) ),
mFlex(1),
if (selectedPaymentMethod == "MADA")
Container(
decoration: containerRadius(CustomColors.green, 200),
padding: EdgeInsets.only(top: 6, bottom: 6, left: 12, right: 12),
child: Text(
"Selected",
style: TextStyle(
color: Colors.white,
fontSize: 11,
),
),
),
], ],
), ),
), ),
), ),
), ),
),
Container( Container(
width: double.infinity, width: double.infinity,
child: InkWell( child: InkWell(
@ -90,8 +112,16 @@ class _PaymentMethodState extends State<PaymentMethod> {
borderRadius: BorderRadius.circular(10), borderRadius: BorderRadius.circular(10),
side: selectedPaymentMethod == "VISA" ? BorderSide(color: Colors.green, width: 5.0) : BorderSide(color: Colors.transparent, width: 0.0), side: selectedPaymentMethod == "VISA" ? BorderSide(color: Colors.green, width: 5.0) : BorderSide(color: Colors.transparent, width: 0.0),
), ),
child: Padding(
padding: const EdgeInsets.all(12.0),
child: Row( child: Row(
children: [ children: [
Container(
width: 24,
height: 24,
decoration: containerColorRadiusBorderWidth(selectedPaymentMethod == "VISA" ? CustomColors.accentColor : Colors.transparent, 100, Colors.grey, 0.5),
),
mWidth(12),
Container( Container(
height: 60.0, height: 60.0,
padding: EdgeInsets.all(7.0), padding: EdgeInsets.all(7.0),
@ -106,12 +136,25 @@ class _PaymentMethodState extends State<PaymentMethod> {
fontSize: 14, fontSize: 14,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
) ), mFlex(1),
if (selectedPaymentMethod == "VISA")
Container(
decoration: containerRadius(CustomColors.green, 200),
padding: EdgeInsets.only(top: 6, bottom: 6, left: 12, right: 12),
child: Text(
"Selected",
style: TextStyle(
color: Colors.white,
fontSize: 11,
),
),
),
], ],
), ),
), ),
), ),
), ),
),
Container( Container(
width: double.infinity, width: double.infinity,
child: InkWell( child: InkWell(
@ -126,8 +169,16 @@ class _PaymentMethodState extends State<PaymentMethod> {
borderRadius: BorderRadius.circular(10), borderRadius: BorderRadius.circular(10),
side: selectedPaymentMethod == "MASTERCARD" ? BorderSide(color: Colors.green, width: 5.0) : BorderSide(color: Colors.transparent, width: 0.0), side: selectedPaymentMethod == "MASTERCARD" ? BorderSide(color: Colors.green, width: 5.0) : BorderSide(color: Colors.transparent, width: 0.0),
), ),
child: Padding(
padding: const EdgeInsets.all(12.0),
child: Row( child: Row(
children: [ children: [
Container(
width: 24,
height: 24,
decoration: containerColorRadiusBorderWidth(selectedPaymentMethod == "MASTERCARD" ? CustomColors.accentColor : Colors.transparent, 100, Colors.grey, 0.5),
),
mWidth(12),
Container( Container(
height: 60.0, height: 60.0,
padding: EdgeInsets.all(7.0), padding: EdgeInsets.all(7.0),
@ -142,12 +193,25 @@ class _PaymentMethodState extends State<PaymentMethod> {
fontSize: 14, fontSize: 14,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
) ), mFlex(1),
if (selectedPaymentMethod == "MASTERCARD")
Container(
decoration: containerRadius(CustomColors.green, 200),
padding: EdgeInsets.only(top: 6, bottom: 6, left: 12, right: 12),
child: Text(
"Selected",
style: TextStyle(
color: Colors.white,
fontSize: 11,
),
),
),
], ],
), ),
), ),
), ),
), ),
),
Container( Container(
width: double.infinity, width: double.infinity,
child: InkWell( child: InkWell(
@ -162,8 +226,16 @@ class _PaymentMethodState extends State<PaymentMethod> {
borderRadius: BorderRadius.circular(10), borderRadius: BorderRadius.circular(10),
side: selectedPaymentMethod == "Installment" ? BorderSide(color: Colors.green, width: 5.0) : BorderSide(color: Colors.transparent, width: 0.0), side: selectedPaymentMethod == "Installment" ? BorderSide(color: Colors.green, width: 5.0) : BorderSide(color: Colors.transparent, width: 0.0),
), ),
child: Padding(
padding: const EdgeInsets.all(12.0),
child: Row( child: Row(
children: [ children: [
Container(
width: 24,
height: 24,
decoration: containerColorRadiusBorderWidth(selectedPaymentMethod == "Installment" ? CustomColors.accentColor : Colors.transparent, 100, Colors.grey, 0.5),
),
mWidth(12),
Container( Container(
height: 60.0, height: 60.0,
padding: EdgeInsets.all(7.0), padding: EdgeInsets.all(7.0),
@ -178,12 +250,25 @@ class _PaymentMethodState extends State<PaymentMethod> {
fontSize: 14, fontSize: 14,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
) ), mFlex(1),
if (selectedPaymentMethod == "Installment")
Container(
decoration: containerRadius(CustomColors.green, 200),
padding: EdgeInsets.only(top: 6, bottom: 6, left: 12, right: 12),
child: Text(
"Selected",
style: TextStyle(
color: Colors.white,
fontSize: 11,
),
),
),
], ],
), ),
), ),
), ),
), ),
),
Platform.isIOS Platform.isIOS
? Container( ? Container(
width: double.infinity, width: double.infinity,
@ -199,8 +284,16 @@ class _PaymentMethodState extends State<PaymentMethod> {
borderRadius: BorderRadius.circular(10), borderRadius: BorderRadius.circular(10),
side: selectedPaymentMethod == "ApplePay" ? BorderSide(color: Colors.green, width: 5.0) : BorderSide(color: Colors.transparent, width: 0.0), side: selectedPaymentMethod == "ApplePay" ? BorderSide(color: Colors.green, width: 5.0) : BorderSide(color: Colors.transparent, width: 0.0),
), ),
child: Padding(
padding: const EdgeInsets.all(12.0),
child: Row( child: Row(
children: [ children: [
Container(
width: 24,
height: 24,
decoration: containerColorRadiusBorderWidth(selectedPaymentMethod == "ApplePay" ? CustomColors.accentColor : Colors.transparent, 100, Colors.grey, 0.5),
),
mWidth(12),
Container( Container(
height: 60.0, height: 60.0,
padding: EdgeInsets.all(7.0), padding: EdgeInsets.all(7.0),
@ -215,11 +308,24 @@ class _PaymentMethodState extends State<PaymentMethod> {
fontSize: 14, fontSize: 14,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
) ), mFlex(1),
if (selectedPaymentMethod == "ApplePay")
Container(
decoration: containerRadius(CustomColors.green, 200),
padding: EdgeInsets.only(top: 6, bottom: 6, left: 12, right: 12),
child: Text(
"Selected",
style: TextStyle(
color: Colors.white,
fontSize: 11,
),
),
),
], ],
), ),
), ),
), ),
),
) )
// Container( // Container(
// margin: EdgeInsets.only(top: 25.0), // margin: EdgeInsets.only(top: 25.0),
@ -279,7 +385,7 @@ class _PaymentMethodState extends State<PaymentMethod> {
minWidth: MediaQuery.of(context).size.height * 0.1, minWidth: MediaQuery.of(context).size.height * 0.1,
height: 45.0, height: 45.0,
child: RaisedButton( child: RaisedButton(
color: CustomColors.accentColor, color: CustomColors.green,
textColor: Colors.white, textColor: Colors.white,
disabledTextColor: Colors.white, disabledTextColor: Colors.white,
disabledColor: new Color(0xFFbcc2c4), disabledColor: new Color(0xFFbcc2c4),

Loading…
Cancel
Save