From d18922b8f2ec842bcaa47d437c608a9e9095afbf Mon Sep 17 00:00:00 2001 From: Tim Marx Date: Wed, 15 Apr 2020 13:39:34 +0200 Subject: [PATCH] add app bar with close icon Signed-off-by: Tim Marx --- lib/widgets/pve_file_selector_widget.dart | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/widgets/pve_file_selector_widget.dart b/lib/widgets/pve_file_selector_widget.dart index 0ab44ac..53b2579 100644 --- a/lib/widgets/pve_file_selector_widget.dart +++ b/lib/widgets/pve_file_selector_widget.dart @@ -69,6 +69,16 @@ class PveFileSelectorWidget extends StatelessWidget { padding: const EdgeInsets.all(8.0), child: Column( children: [ + AppBar( + backgroundColor: Colors.transparent, + elevation: 0, + leading: IconButton( + icon: Icon( + Icons.close, + color: Colors.black, + ), + onPressed: () => Navigator.of(context).pop()), + ), Text( "Storage", style: TextStyle(fontSize: 30, fontWeight: FontWeight.bold), @@ -294,8 +304,8 @@ class FileSelectorContentView extends StatelessWidget { ), ), ), - gridDelegate: - SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: wide ? 5 : 3), + gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: wide ? 5 : 3), ); }); } -- 2.39.5