changed delete button placement

This commit is contained in:
2026-01-14 16:06:25 +01:00
parent 0309678650
commit 36e035c09c

View File

@@ -36,7 +36,25 @@ class CreateBookmarkDialog extends StatelessWidget {
} }
return AlertDialog( return AlertDialog(
title: Text('Create Bookmark'), title: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text('Create Bookmark'),
if (selectedBookmark != null)
TextButton(
onPressed: () {
onDeletePressed?.call();
Navigator.of(context).pop();
},
child: Text(
'Delete',
style: TextStyle(color: Theme.of(context).colorScheme.error),
),
),
],
),
content: SingleChildScrollView( content: SingleChildScrollView(
child: Column( child: Column(
children: [ children: [
@@ -123,14 +141,6 @@ class CreateBookmarkDialog extends StatelessWidget {
}, },
child: Icon(Icons.save), child: Icon(Icons.save),
), ),
if (selectedBookmark != null)
TextButton(
onPressed: () {
onDeletePressed?.call();
Navigator.of(context).pop();
},
child: Text('Delete'),
),
], ],
), ),
], ],