open_file icon indicating copy to clipboard operation
open_file copied to clipboard

BUG result.type == done even if user does NOT download the file

Open mariapapag opened this issue 2 years ago • 0 comments

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

Screen Shot 2022-04-06 at 10 44 27 AM

When user dismisses the ios bottom sheet by clicking the close(X) button (does NOT download the file)

Screen Shot 2022-04-06 at 10 44 27 AM

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?

mariapapag avatar Apr 06 '22 14:04 mariapapag