fixed UI alignment

This commit is contained in:
hannathkadher
2025-01-27 18:12:57 +04:00
parent c72297e0c8
commit 788fb75a68

View File

@ -149,7 +149,9 @@ class CreateSpaceDialogState extends State<CreateSpaceDialog> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
TextField( SizedBox(
width: screenWidth * 0.25,
child: TextField(
controller: nameController, controller: nameController,
onChanged: (value) { onChanged: (value) {
enteredName = value.trim(); enteredName = value.trim();
@ -197,6 +199,7 @@ class CreateSpaceDialogState extends State<CreateSpaceDialog> {
), ),
), ),
), ),
),
if (isNameFieldInvalid) if (isNameFieldInvalid)
Padding( Padding(
padding: const EdgeInsets.only(top: 8.0), padding: const EdgeInsets.only(top: 8.0),
@ -222,6 +225,9 @@ class CreateSpaceDialogState extends State<CreateSpaceDialog> {
const SizedBox(height: 10), const SizedBox(height: 10),
selectedSpaceModel == null selectedSpaceModel == null
? TextButton( ? TextButton(
style: TextButton.styleFrom(
padding: EdgeInsets.zero,
),
onPressed: () { onPressed: () {
_showLinkSpaceModelDialog(context); _showLinkSpaceModelDialog(context);
}, },
@ -309,6 +315,7 @@ class CreateSpaceDialogState extends State<CreateSpaceDialog> {
subspaces == null subspaces == null
? TextButton( ? TextButton(
style: TextButton.styleFrom( style: TextButton.styleFrom(
padding: EdgeInsets.zero,
overlayColor: ColorsManager.transparentColor, overlayColor: ColorsManager.transparentColor,
), ),
onPressed: () async { onPressed: () async {