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