Browse Source

Added close button to new project dialog

master
Kenneth Bruen 2 years ago
parent
commit
19ddc565ed
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 10
      lib/dialogs/new_project.dart

10
lib/dialogs/new_project.dart

@ -27,6 +27,16 @@ class NewProjectDialog extends HookWidget {
crossAxisAlignment: CrossAxisAlignment.stretch, crossAxisAlignment: CrossAxisAlignment.stretch,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
Align(
alignment: Alignment.centerRight,
child: IconButton(
icon: const Icon(Icons.close),
tooltip: 'Close',
onPressed: () {
Navigator.of(context).pop();
},
),
),
Center( Center(
child: Padding( child: Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),

Loading…
Cancel
Save