From 19ddc565ede2fe7679ee6bbf2091b69f56d1438e Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Thu, 2 Jun 2022 15:04:01 +0300 Subject: [PATCH] Added close button to new project dialog --- lib/dialogs/new_project.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/dialogs/new_project.dart b/lib/dialogs/new_project.dart index bbeabaa..93765e5 100644 --- a/lib/dialogs/new_project.dart +++ b/lib/dialogs/new_project.dart @@ -27,6 +27,16 @@ class NewProjectDialog extends HookWidget { crossAxisAlignment: CrossAxisAlignment.stretch, mainAxisSize: MainAxisSize.min, children: [ + Align( + alignment: Alignment.centerRight, + child: IconButton( + icon: const Icon(Icons.close), + tooltip: 'Close', + onPressed: () { + Navigator.of(context).pop(); + }, + ), + ), Center( child: Padding( padding: const EdgeInsets.all(8.0),