proccedToPaymentButton method

Widget proccedToPaymentButton()

Implementation

Widget proccedToPaymentButton() {
  return Obx(
    () {
      return InkWell(
        onTap: controller.allowPayment.value? () async {
          await controller.approveRateRequest();
        } : null,
        child: Container(
          width: double.infinity,
          height: 50,
          alignment: Alignment.center,
          decoration: BoxDecoration(
            color: controller.allowPayment.value? ColorHelper.primaryColor1 : ColorHelper.neutralLightText,
            borderRadius: BorderRadius.circular(8.dp),
          ),
          child: const Text(
            'Proceed to Payment',
            textAlign: TextAlign.center,
            style: TextStyle(
              fontSize: 18,
              fontWeight: FontWeight.w500,
              color: ColorHelper.white,
            ),
          ),
        ),
      );
    }
  );
  }