import 'package:comwell_key_app/check_out/bloc/check_out_cubit.dart';
import 'package:comwell_key_app/themes/light_theme.dart';
import 'package:comwell_key_app/utils/l10n_utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_svg/flutter_svg.dart';
class CheckOutPaymentCard extends StatelessWidget {
const CheckOutPaymentCard({super.key});
@override
Widget build(BuildContext context) {
final cubit = context.read<CheckoutCubit>();
final theme = Theme.of(context);
return Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: sandColor[10],
),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 25.0, vertical: 20),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
mainAxisSize: MainAxisSize.max,
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
context.strings.checkout_page_confirmation_price_title,
style: theme.textTheme.bodySmall?.copyWith(color: colorBlack[65]),
),
const SizedBox(height: 4),
Text(context.strings.checkout_page_payment_price(cubit.trimmedBalance.toString()),
style: theme.textTheme.displaySmall),
],
),
Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
color: sandColor[40],
),
child: Padding(
padding: const EdgeInsets.all(16.0),
child: SvgPicture.asset(
"assets/icons/ic_card.svg",
fit: BoxFit.fitWidth,
),
),
),
],
),
),
);
}
}