mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 02:58:55 +03:30
Fix items bug in add package screen
This commit is contained in:
@@ -78,7 +78,12 @@ class _PackageAddScreenState extends State<PackageAddScreen> {
|
||||
child: Scaffold(
|
||||
appBar: AppBar(
|
||||
titleSpacing: -10,
|
||||
title: Text('Packages', style: TextStyle(color: Colors.white,),),
|
||||
title: Text(
|
||||
'Packages',
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
backgroundColor: Colors.black,
|
||||
leading: IconButton(
|
||||
icon: Icon(
|
||||
@@ -203,32 +208,32 @@ class _PackageAddScreenState extends State<PackageAddScreen> {
|
||||
),
|
||||
),
|
||||
Consumer<PackageProvider>(
|
||||
builder: (ctx, packageProvider, _) =>
|
||||
ListView.builder(
|
||||
physics: NeverScrollableScrollPhysics(),
|
||||
shrinkWrap: true,
|
||||
itemBuilder: (ctx, index) => AddItemBox(
|
||||
text: 'Select Items Included',
|
||||
iconColor: kPurpleSub,
|
||||
deviceBlockSize: _deviceBlockSize,
|
||||
values:
|
||||
packageProvider.itemValues[index],
|
||||
vals: packageProvider.itemVals,
|
||||
initialItemValue:
|
||||
packageProvider.initialItemValue,
|
||||
index: index,
|
||||
filteredItems:
|
||||
packageProvider.filteredItems!,
|
||||
hasRemoveButton:
|
||||
packageProvider.itemValues.length >
|
||||
1
|
||||
? true
|
||||
: false,
|
||||
),
|
||||
itemCount:
|
||||
packageProvider.itemValues.length,
|
||||
builder: (ctx, packageProvider, _) =>
|
||||
ListView.builder(
|
||||
physics: NeverScrollableScrollPhysics(),
|
||||
shrinkWrap: true,
|
||||
itemBuilder: (ctx, index) => AddItemBox(
|
||||
text: 'Select Items Included',
|
||||
iconColor: kPurpleSub,
|
||||
deviceBlockSize: _deviceBlockSize,
|
||||
values:
|
||||
packageProvider.itemValues[index],
|
||||
vals: packageProvider.itemVals,
|
||||
initialItemValue:
|
||||
packageProvider.initialItemValue,
|
||||
index: index,
|
||||
// filteredItems:
|
||||
// packageProvider.filteredItems!,
|
||||
hasRemoveButton:
|
||||
packageProvider.itemValues.length >
|
||||
1
|
||||
? true
|
||||
: false,
|
||||
),
|
||||
itemCount:
|
||||
packageProvider.itemValues.length,
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
height: 30,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user