Made AssignTagsDialog scrollable to account for a long list of product allocations, for a better UX.

This commit is contained in:
Faris Armoush
2025-07-27 11:05:30 +03:00
parent 2d69e3c72f
commit a4391aa73e

View File

@ -182,15 +182,20 @@ class _AssignTagsDialogState extends State<AssignTagsDialog> {
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
SizedBox( ConstrainedBox(
width: double.infinity, constraints: BoxConstraints(
child: AssignTagsTable( minWidth: double.infinity,
productAllocations: allProductAllocations, maxHeight: context.screenHeight * 0.6,
subspaces: _space.subspaces, ),
productLocations: productLocations, child: SingleChildScrollView(
onTagSelected: _handleTagChange, child: AssignTagsTable(
onLocationSelected: _handleLocationChange, productAllocations: allProductAllocations,
onProductDeleted: _handleProductDelete, subspaces: _space.subspaces,
productLocations: productLocations,
onTagSelected: _handleTagChange,
onLocationSelected: _handleLocationChange,
onProductDeleted: _handleProductDelete,
),
), ),
), ),
if (hasErrors) if (hasErrors)