const constructure

This commit is contained in:
Efril
2026-03-01 20:02:12 +07:00
parent 5058f99fe0
commit e625bd3d2a
142 changed files with 817 additions and 760 deletions
@@ -65,7 +65,7 @@ class _PaymentRightPanelState extends State<PaymentRightPanel> {
color: AppColor.white,
borderRadius: BorderRadius.circular(12),
),
padding: EdgeInsets.all(16),
padding: const EdgeInsets.all(16),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@@ -81,19 +81,19 @@ class _PaymentRightPanelState extends State<PaymentRightPanel> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SpaceHeight(24),
const SpaceHeight(24),
Text(
'Metode Pembayaran',
style: AppStyle.md.copyWith(fontWeight: FontWeight.w600),
),
SpaceHeight(12),
const SpaceHeight(12),
BlocBuilder<
PaymentMethodLoaderBloc,
PaymentMethodLoaderState
>(
builder: (context, pmState) {
if (pmState.isFetching) {
return Center(child: LoaderWithText());
return const Center(child: LoaderWithText());
}
return pmState.failureOption.fold(
() => Wrap(
@@ -129,7 +129,7 @@ class _PaymentRightPanelState extends State<PaymentRightPanel> {
);
},
),
SpaceHeight(24),
const SpaceHeight(24),
if (widget.state.paymentMethod != null &&
widget.state.paymentMethod!.type == 'cash')
Column(
@@ -233,7 +233,7 @@ class _PaymentRightPanelState extends State<PaymentRightPanel> {
);
} else {
context.read<PaymentFormBloc>().add(
PaymentFormEvent.submitted(),
const PaymentFormEvent.submitted(),
);
}
}