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,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(
width: double.infinity,
child: AssignTagsTable(
productAllocations: allProductAllocations,
subspaces: _space.subspaces,
productLocations: productLocations,
onTagSelected: _handleTagChange,
onLocationSelected: _handleLocationChange,
onProductDeleted: _handleProductDelete,
ConstrainedBox(
constraints: BoxConstraints(
minWidth: double.infinity,
maxHeight: context.screenHeight * 0.6,
),
child: SingleChildScrollView(
child: AssignTagsTable(
productAllocations: allProductAllocations,
subspaces: _space.subspaces,
productLocations: productLocations,
onTagSelected: _handleTagChange,
onLocationSelected: _handleLocationChange,
onProductDeleted: _handleProductDelete,
),
),
),
if (hasErrors)