open_file
open_file copied to clipboard
BUG result.type == done even if user does NOT download the file
The problem User clicks download button which runs the following code
final OpenResult result = await OpenFile.open(tmpPath!);
if (result.type == ResultType.done) {
successNotification?.call();
}
The ios bottom sheet comes up as expected
When user dismisses the ios bottom sheet by clicking the close(X) button (does NOT download the file)
The condition result.type == ResultType.done
is true and success notification fires. User has not successfully downloaded the file. Why is the result done if user does or doesn't actually download the file?