const constructure
This commit is contained in:
@@ -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(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user