sell scroll fixed

null-safety-migration
suvaissov 2021-07-19 15:59:45 +06:00
parent fb9e4c5fec
commit 0cbc7a545f
1 changed files with 5 additions and 3 deletions

View File

@ -39,7 +39,8 @@ class SellView extends StatelessWidget {
sum: sumProducts(state.items!), sum: sumProducts(state.items!),
), ),
), ),
body: Column( body: ListView(
physics: const BouncingScrollPhysics(),
children: [ children: [
const ContragentSelectBar( const ContragentSelectBar(
value: 'Частное лицо', value: 'Частное лицо',
@ -52,11 +53,12 @@ class SellView extends StatelessWidget {
), ),
), ),
ListView.separated( ListView.separated(
shrinkWrap: true,
physics: const BouncingScrollPhysics(), physics: const BouncingScrollPhysics(),
padding: const EdgeInsets.only(bottom: 120),
shrinkWrap: true,
itemCount: state.items!.length, itemCount: state.items!.length,
itemBuilder: (BuildContext context, int index) { itemBuilder: (BuildContext context, int index) {
final ProductDao product = state.items!.elementAt(index); final ProductDao product = state.items!.elementAt(0);
return ProductListItem( return ProductListItem(
key: UniqueKey(), key: UniqueKey(),
ean: product.eanCode, ean: product.eanCode,