FilesSelector: Close when close button is pressed

This commit is contained in:
Elias Projahn 2020-03-28 12:30:19 +01:00
parent 88c9f65649
commit 9f2c86db78

View file

@ -127,6 +127,12 @@ class _FilesSelectorState extends State<FilesSelector> {
child: Scaffold(
appBar: AppBar(
title: Text('Choose files'),
leading: IconButton(
icon: const Icon(Icons.close),
onPressed: () {
Navigator.pop(context);
},
),
actions: <Widget>[
FlatButton(
child: Text(