-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion Box #99
Comments
+1 For Flutter desktop support |
Please add directory selection, so go-flutter-desktop file_picker plug-in can add this new feature. |
Flutter Desktop support would be amazing! :-) |
Please add support for multiple fileType in singleFilePath. e.g. |
+1 for #68 |
@tolstenko desktop is already in progress, see discussion here. |
The discussion you linked to is about the go-flutter-desktop project. The Flutter desktop support that was requested in #85 specifically referred to the Flutter project's in-development support for desktop (which is probably what people referring to Flutter desktop are likely to mean unless they specifically mention a community project like go-flutter-desktop or flutter-rs). Those two things have completely separate plugin APIs, tooling, and even languages, and thus require completely different implementations. |
@stuartmorgan oh, right! Now I get why you were referring to desktop-go instead of just desktop. That’s great anyway, somehow I thought you were already developing a file picker for a desktop flutter shell and you’d want to merge it with this package. |
There is actually already a file picker plugin for desktop Flutter (macOS and Linux so far, Windows to be implemented). It may actually become part of Flutter for desktop itself in the future, but in the meantime if someone wants to make (non-Go) desktop implementations of this plugin for API compatibility reasons it could be used as a starting point. |
+1 for Picking directory please |
Yes I’m aware of that @stuartmorgan. It’s not the flutter desktop but it’s a desktop implementation anyway, that’s why in the details it is mentioned that is done through go-flutter. |
So does that mean #85 is a wont-fix? |
@miguelpruivo I import it the way @guiguan suggested |
@miguelpruivo you do not if you type it like this: |
@rlee1990 what's the exception thrown if you do:
|
I get this: |
Hum, I get it @rlee1990. We are using different |
How about add and argument for static Future<File> getFile({
FileType type = FileType.ANY,
String fileExtension,
String recentFolder, // recent folder, default null
});
static Future<String> getFilePath({
FileType type = FileType.ANY,
String fileExtension,
String recentFolder, // recent parent folder, default null
}) It's very popular feature in desktop. Maybe very useful in Android too. |
I'm getting the following error:
with:
|
@miguelpruivo Make this an optional argument? There is no harm to iOS. |
@miguelpruivo Yes, this error occurs when running the web version (Chrome). |
@miguelpruivo The package " https://pub.dev/packages/flutter_file_dialog" open the dialog to save a file, but it make the app crash....and the file is not saved. Thanks |
flutter_file_picker does not prevent picking files with another extension when using the filter on extension. |
Is it possible to set the Image Quality, as we have in image_picker package? |
@ppcapel that image quality you’re referring to is for the camera capture image quality. Since this plugin doesn’t use camera at all (only picking files) I would say that it doesn’t make much sense here. The same goes for the image picker, I believe that image quality is only applied when taking new pictures and not from those picked from gallery. |
@miguelpruivo in the image_picker the quality can be set to picked images too... /// The |
It would be nice to add |
@crtl I understand. Early versions of file picker had camera support, due to direct integration with image_picker, but then, it would force users that use file_picker to pick files, despite of using camera or not, to have the camera entitlements when publishing to the store and that could result in undesired install permissions. Also, that would require two plugins to be synced with each other, whereas now you could just use image_picker and file_picker and have a more granular control with what/when to use. |
@miguelpruivo
to no avail. It fails to compile with this error:
I am happy to contribute to this package, and would like to do so right away. The best other option I have is to use another dart package that was updated sometime early last year.(called The problem seem to be that the default FileType value is I changed all instances of |
@AirborneEagle as pointed here in the CHANGELOG 1.5.0 introduced a breaking change that is renaming the enum for camelCase instead of upper case, thus, you must indeed refactor your code as well. That web-support branch is unstable, but I've plans to introduce web support and already wrapped the code, although, not as complete as mobile version in the first stages. Thanks! |
Thank you. 👍 |
As of now, with version 1.6.0 released just now you can start filtering multiple extensions at once. There are breaking changes, so have in mind that from now on you'll need to provide an Example:
Web support is coming soon as well (already in progress). I'm closing this in favor of individual issues for each requested feature (tagged with [Feature]). |
How do I limit the number of files selection and their size? For example, I want to bound user to select 5 files only and each files cannot be more than 5Mb. |
@rmsh03dhj you can’t do it as far as it concerns to native file explorer apps. They would have to support it — which they don’t. Because of that, and IMO, it’s even a better option, you can just iterate over the picked files and check if they meet your requirements. If they don’t, show an alert/error and discard the files. |
@miguelpruivo Thanks for the reply. Will try to go as per your suggestion. |
It's going to be right if we only allow directory selection on the desktop tunnel. |
Suggestions Box
Please, if you have any suggestion add it here and I'll try to keep track of those, as well we can try to discuss which will make sense to implement or not in the package.
The list order is from the most likely to be added to the less.
To-do list
The text was updated successfully, but these errors were encountered: