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

Migrating dart:html to package:web #507

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

a-h-mzd
Copy link

@a-h-mzd a-h-mzd commented May 10, 2024

This PR addresses the following issue: #498

Copy link

@amrgetment amrgetment left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +92 to +94
for (final web.HTMLElement tag in tags) {
web.document.querySelector('head')!.append(tag);
}

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?

Copy link
Author

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?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nevermind, you are right

@a-h-mzd
Copy link
Author

a-h-mzd commented May 11, 2024

You need to update index.html check my PR https://github.com/miguelpruivo/flutter_file_picker/pull/1481/files

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants