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
[Android] No return value when use saveAs and press back #78
Comments
It'll be huge help if you add it and create a PR, I'm unfortunately extremely busy these days🥲 |
From Worldline, we will try to implemented a solution for this. Do you have any advise or recommendation? |
@deandreamatias-worldline go with your latter solution (result.success with an empty path) |
Just made a proposal for the solution, but returning null instead of empty path. The important change is in Dialog.kt (explained in PR). Other changes are merely format and indentation corrections, so feel free to pick or not as many changes as you will |
Hi, merged, thanks a lot |
Plugin version: 0.2.8
Platform: Android
Flutter doctor
Minimal code example: example of repo
Current Behavior:
When try save a file with method saveAs on Android and press on back button, the method doesn't return anything. This not allow that developer control this use case.
Desired Behavior:
When try save a file with method saveAs on Android and press on back button, the method should be return something to allow developer control this use case.
Steps To Reproduce:
Aditional information:
I think in two ways to solve this: Add a custom Exception like EmptyException or return success with null/empty path.
Code related:
The text was updated successfully, but these errors were encountered: