mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-25 04:22:28 +00:00
Made AssignTagsDialog
scrollable to account for a long list of product allocations, for a better UX.
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user