Skip to content
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

Flutter Web -> openData throws null is not a subtype of JSObject #525

Open
joseianpatrick opened this issue Aug 14, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@joseianpatrick
Copy link

Describe the bug
A clear and concise description of what the bug is.

Flutter Web, it throws this error

final document = await PdfDocument.openData(platformFile.bytes!);

TypeError: null: type 'Null' is not a subtype of type 'JSObject'

It works in mobile

To Reproduce
Steps to reproduce the behavior:

  1. in Flutter web, when using PdfDocument.openData(platformFile.bytes)

Expected behavior
A clear and concise description of what you expected to happen.

  1. Should get the pdf page normally

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@joseianpatrick joseianpatrick added the bug Something isn't working label Aug 14, 2024
@ukchanJung
Copy link

me too plz fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants