fix: bug prod

This commit is contained in:
efrilm 2025-08-04 15:39:11 +07:00
parent a63328d953
commit 04e1edbe79

View File

@ -1,7 +1,6 @@
// ignore_for_file: public_member_api_docs, sort_constructors_first
import 'package:enaklo_pos/core/components/flushbar.dart';
import 'package:enaklo_pos/presentation/home/bloc/current_outlet/current_outlet_bloc.dart';
import 'package:enaklo_pos/presentation/home/bloc/outlet_loader/outlet_loader_bloc.dart';
import 'package:enaklo_pos/presentation/home/bloc/product_loader/product_loader_bloc.dart';
import 'package:enaklo_pos/presentation/home/widgets/home_right_title.dart';
import 'package:flutter/material.dart';
@ -355,12 +354,7 @@ class _HomePageState extends State<HomePage> {
),
),
Expanded(
child: SingleChildScrollView(
padding: const EdgeInsets.all(16.0).copyWith(top: 0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
BlocBuilder<CheckoutBloc, CheckoutState>(
child: BlocBuilder<CheckoutBloc, CheckoutState>(
builder: (context, state) {
return state.maybeWhen(
orElse: () => const Center(
@ -383,8 +377,8 @@ class _HomePageState extends State<HomePage> {
}
return ListView.separated(
shrinkWrap: true,
physics:
const NeverScrollableScrollPhysics(),
padding: const EdgeInsets.symmetric(
horizontal: 16),
itemBuilder: (context, index) =>
OrderMenu(data: products[index]),
separatorBuilder: (context, index) =>
@ -395,10 +389,6 @@ class _HomePageState extends State<HomePage> {
);
},
),
const SpaceHeight(8.0),
],
),
),
),
Padding(
padding: const EdgeInsets.all(16.0).copyWith(top: 0),
@ -498,7 +488,6 @@ class _HomePageState extends State<HomePage> {
return state.maybeWhen(
orElse: () => Align(
alignment: Alignment.bottomCenter,
child: Expanded(
child: Button.filled(
borderRadius: 12,
elevation: 1,
@ -514,7 +503,6 @@ class _HomePageState extends State<HomePage> {
label: 'Lanjutkan Pembayaran',
),
),
),
loaded: (items,
discountModel,
discount,
@ -527,7 +515,6 @@ class _HomePageState extends State<HomePage> {
orderType) =>
Align(
alignment: Alignment.bottomCenter,
child: Expanded(
child: Button.filled(
borderRadius: 12,
elevation: 1,
@ -549,7 +536,6 @@ class _HomePageState extends State<HomePage> {
label: 'Lanjutkan Pembayaran',
),
),
),
);
},
),