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,8 +182,12 @@ 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(
minWidth: double.infinity,
maxHeight: context.screenHeight * 0.6,
),
child: SingleChildScrollView(
child: AssignTagsTable( child: AssignTagsTable(
productAllocations: allProductAllocations, productAllocations: allProductAllocations,
subspaces: _space.subspaces, subspaces: _space.subspaces,
@ -193,6 +197,7 @@ class _AssignTagsDialogState extends State<AssignTagsDialog> {
onProductDeleted: _handleProductDelete, onProductDeleted: _handleProductDelete,
), ),
), ),
),
if (hasErrors) if (hasErrors)
AssignTagsErrorMessages( AssignTagsErrorMessages(
errorMessages: _validationErrors.values.toSet().toList(), errorMessages: _validationErrors.values.toSet().toList(),