From a4391aa73ed1bd5b1c58444555e114bf95c1c4a5 Mon Sep 17 00:00:00 2001 From: Faris Armoush Date: Sun, 27 Jul 2025 11:05:30 +0300 Subject: [PATCH] Made `AssignTagsDialog` scrollable to account for a long list of product allocations, for a better UX. --- .../widgets/assign_tags_dialog.dart | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/lib/pages/space_management_v2/modules/tags/presentation/widgets/assign_tags_dialog.dart b/lib/pages/space_management_v2/modules/tags/presentation/widgets/assign_tags_dialog.dart index d14a3923..08e9fac2 100644 --- a/lib/pages/space_management_v2/modules/tags/presentation/widgets/assign_tags_dialog.dart +++ b/lib/pages/space_management_v2/modules/tags/presentation/widgets/assign_tags_dialog.dart @@ -182,15 +182,20 @@ class _AssignTagsDialogState extends State { 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)