From 0609cae84a4d660c9093a3b95bd05137f49e48a6 Mon Sep 17 00:00:00 2001 From: Miguel Ruivo Date: Mon, 28 Sep 2020 13:45:17 +0100 Subject: [PATCH] Fixes directory pick on Linux --- CHANGELOG.md | 3 +++ go/file_linux.go | 2 +- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 230353e..10a8466 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.0.4 +Desktop (Go): Fixes directory pick on Linux. + ## 2.0.3 Android: Fixes out of memory issue on some devices when picking big files. diff --git a/go/file_linux.go b/go/file_linux.go index aebcbac..98e5d7c 100644 --- a/go/file_linux.go +++ b/go/file_linux.go @@ -39,7 +39,7 @@ func fileDialog(title string, filter string) (string, error) { } func dirDialog(title string) (string, error) { - dirPath, _, err := dlgs.File(title, `*.*`, true) + dirPath, _, err := dlgs.File(title, "", true) if err != nil { return "", errors.Wrap(err, "failed to open dialog picker") } diff --git a/pubspec.yaml b/pubspec.yaml index 67e28d3..638310d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: file_picker description: A package that allows you to use a native file explorer to pick single or multiple absolute file paths, with extension filtering support. homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker -version: 2.0.3 +version: 2.0.4 dependencies: flutter: