|
|
|
|
@ -199,55 +199,55 @@ class _PaymentMethodState extends State<PaymentMethod> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if (projectViewModel.havePrivilege(90))
|
|
|
|
|
// Container(
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
// child: InkWell(
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// updateSelectedPaymentMethod("TAMARA");
|
|
|
|
|
// },
|
|
|
|
|
// child: Card(
|
|
|
|
|
// elevation: 0.0,
|
|
|
|
|
// margin: EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 8.0),
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// shape: RoundedRectangleBorder(
|
|
|
|
|
// borderRadius: BorderRadius.circular(10),
|
|
|
|
|
// side: selectedPaymentMethod == "TAMARA" ? BorderSide(color: Colors.green, width: 2.0) : BorderSide(color: Colors.transparent, width: 0.0),
|
|
|
|
|
// ),
|
|
|
|
|
// child: Padding(
|
|
|
|
|
// padding: const EdgeInsets.all(12.0),
|
|
|
|
|
// child: Row(
|
|
|
|
|
// children: [
|
|
|
|
|
// Container(
|
|
|
|
|
// width: 24,
|
|
|
|
|
// height: 24,
|
|
|
|
|
// decoration: containerColorRadiusBorderWidth(selectedPaymentMethod == "TAMARA" ? CustomColors.accentColor : Colors.transparent, 100, Colors.grey, 0.5),
|
|
|
|
|
// ),
|
|
|
|
|
// mWidth(12),
|
|
|
|
|
// Container(
|
|
|
|
|
// height: 60.0,
|
|
|
|
|
// padding: EdgeInsets.all(0.0),
|
|
|
|
|
// width: 60,
|
|
|
|
|
// child: Image.asset("assets/images/new/payment/tamara.png"),
|
|
|
|
|
// ),
|
|
|
|
|
// mFlex(1),
|
|
|
|
|
// if (selectedPaymentMethod == "TAMARA")
|
|
|
|
|
// Container(
|
|
|
|
|
// decoration: containerRadius(CustomColors.green, 200),
|
|
|
|
|
// padding: EdgeInsets.only(top: 6, bottom: 6, left: 12, right: 12),
|
|
|
|
|
// child: Text(
|
|
|
|
|
// TranslationBase.of(context).paymentSelected,
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// fontSize: 11,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
updateSelectedPaymentMethod("TAMARA");
|
|
|
|
|
},
|
|
|
|
|
child: Card(
|
|
|
|
|
elevation: 0.0,
|
|
|
|
|
margin: EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 8.0),
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
|
side: selectedPaymentMethod == "TAMARA" ? BorderSide(color: Colors.green, width: 2.0) : BorderSide(color: Colors.transparent, width: 0.0),
|
|
|
|
|
),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(12.0),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
width: 24,
|
|
|
|
|
height: 24,
|
|
|
|
|
decoration: containerColorRadiusBorderWidth(selectedPaymentMethod == "TAMARA" ? CustomColors.accentColor : Colors.transparent, 100, Colors.grey, 0.5),
|
|
|
|
|
),
|
|
|
|
|
mWidth(12),
|
|
|
|
|
Container(
|
|
|
|
|
height: 60.0,
|
|
|
|
|
padding: EdgeInsets.all(0.0),
|
|
|
|
|
width: 60,
|
|
|
|
|
child: Image.asset("assets/images/new/payment/tamara.png"),
|
|
|
|
|
),
|
|
|
|
|
mFlex(1),
|
|
|
|
|
if (selectedPaymentMethod == "TAMARA")
|
|
|
|
|
Container(
|
|
|
|
|
decoration: containerRadius(CustomColors.green, 200),
|
|
|
|
|
padding: EdgeInsets.only(top: 6, bottom: 6, left: 12, right: 12),
|
|
|
|
|
child: Text(
|
|
|
|
|
TranslationBase.of(context).paymentSelected,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 11,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if (widget.isShowInstallments && projectViewModel.havePrivilege(91))
|
|
|
|
|
Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
@ -382,6 +382,7 @@ class _PaymentMethodState extends State<PaymentMethod> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if(tamaraInstallmentDetails != null)
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
...List.generate(
|
|
|
|
|
|