Added close button to new project dialog

This commit is contained in:
Kenneth Bruen 2022-06-02 15:04:01 +03:00
parent 2a19505ed3
commit 19ddc565ed
Signed by: kbruen
GPG key ID: C1980A470C3EE5B1

View file

@ -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),