Made SpaceSubSpacesDialog scrollable, for a better UX, and to account for a very long list of subspaces.

This commit is contained in:
Faris Armoush
2025-07-27 11:01:22 +03:00
parent cd8ffc99ea
commit 2d69e3c72f

View File

@ -89,7 +89,12 @@ class _SpaceSubSpacesDialogState extends State<SpaceSubSpacesDialog> {
), ),
child: const SelectableText('Create Sub-Space'), child: const SelectableText('Create Sub-Space'),
), ),
content: Column( content: ConstrainedBox(
constraints: BoxConstraints(
maxHeight: context.screenHeight * 0.4,
),
child: SingleChildScrollView(
child: Column(
spacing: 12, spacing: 12,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
@ -112,6 +117,8 @@ class _SpaceSubSpacesDialogState extends State<SpaceSubSpacesDialog> {
), ),
], ],
), ),
),
),
actions: [ actions: [
SpaceDetailsActionButtons( SpaceDetailsActionButtons(
onSave: _hasDuplicateNames ? null : _handleSave, onSave: _hasDuplicateNames ? null : _handleSave,