-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
Migrating dart:html to package:web #507
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to update index.html check my PR
https://github.com/miguelpruivo/flutter_file_picker/pull/1481/files
for (final web.HTMLElement tag in tags) { | ||
web.document.querySelector('head')!.append(tag); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
querySelector has children, why for loop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you elaborate on how querySelector having children can help us get rid of the for loop? Maybe a code snippet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nevermind, you are right
Actually, there is no need to change the example index.html file. The behavior you're referring to is going to change when flutter support for wasm lands on the stable channel. Also making the example project build with wasm is irrelevant to this PR. |
@ponnamkarthik Any chance to get this merged? :) This is a blocker for WASM builds. |
Wow, that was fast! Thank you 🥳 |
This PR addresses the following issue: #498