foss42 / apidash

API Dash is a beautiful open-source cross-platform API Client built using Flutter which can help you easily create & customize your API requests, visually inspect responses and generate API integration code. A lightweight alternative to postman/insomnia.
https://apidash.dev
Apache License 2.0
1.43k stars 269 forks source link

Fix File Picker on linux #357

Closed Tanish2002 closed 5 months ago

Tanish2002 commented 5 months ago

PR Description

This PR replaces the file_picker package with the file_selector package.

It uses native channels for a file picker dialog and should work without any third-party runtime dependencies installed.

I learned about this package through a issue on file_picker github repo thread.

Since this uses native channels it should be more performant as well, However, I don't have any benchmarks to back this.

I've tested the file picker on Linux and it works fine. Would need someone else to check on a Mac and Windows machine as well.

Related Issues

Checklist

Added/updated tests?

animator commented 5 months ago

Thanks for resolving the issue. file_selector is also maintained by the flutter team so it is the way to go. 🚀