getPaymentMethodsUiTemplate function

String getPaymentMethodsUiTemplate({
  1. required String className,
  2. required String isLoading,
})

Implementation

String getPaymentMethodsUiTemplate(
    {required String className, required String isLoading}) {
  return '''
CustomBody(
      title: "Payment Methods",
      isLoading: $isLoading,
      backgroundColor: AppColors.background,
      bottomNavigationBar: Container(
        padding: EdgeInsets.all(20.sp),
        child: ElevatedButton(
          onPressed: () {},
          style: ElevatedButton.styleFrom(
            backgroundColor: AppColors.primary,
            padding: EdgeInsets.symmetric(vertical: 16.sp),
            shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16.sp)),
          ),
          child: TextWidget(text: "Add New Method", color: AppColors.white, fontWeight: FontWeight.bold),
        ),
      ),
      child: ListView(
        padding: EdgeInsets.all(20.sp),
        children: [
          ${_buildPaymentSection("Saved Cards")},
          ${_buildCreditCard("4532", "Visa", "08/26", 'Colors.blue.shade900')},
          ${_buildCreditCard("9876", "MasterCard", "12/25", 'Colors.black')},

          SizedBox(height: 30.sp),
          ${_buildPaymentSection("Other Options")},
          ${_buildSimplePayment("Google Pay", 'Icons.account_balance_wallet_rounded', true)},
          ${_buildSimplePayment("Paypal", 'Icons.payment_rounded', false)},
          ${_buildSimplePayment("Apple Pay", 'Icons.apple', false)},
        ],
      ),
    )''';
}