Go Fyne File Picker Dialog?

Viewed 179

Is there a way to use the native file picker dialog when integrating with Fyne?

Currently, I am using the library implemented file picker, I would like to use the native look with the file path/address bar above the picker

showFilePicker := func() {
    fmt.Println("button tapped")
    onChosen := func(f fyne.URIReadCloser, err error) {
        if err != nil {
            fmt.Println(err)
            return
        }
        if f == nil {
            return
        }
        fmt.Printf("chosen: %v", f.URI())
        _ = uri.Set(f.URI().String())
    }
    dialog.ShowFileOpen(onChosen, w)
}
0 Answers
Related