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

fix(web): remove remaining references to dart:html #12601

Merged
merged 4 commits into from
Apr 8, 2024
Merged

Conversation

Lyokone
Copy link
Contributor

@Lyokone Lyokone commented Apr 8, 2024

Description

Replace this paragraph with a description of what this PR is doing. If you're modifying existing behavior, describe the existing behavior, how this PR is changing it, and what motivated the change.

Related Issues

closes #12597

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (melos run analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

@Lyokone Lyokone changed the title fix(web): remove remaining references to dart:html fix(web): remove remaining references to dart:html Apr 8, 2024
@Lyokone Lyokone mentioned this pull request Apr 8, 2024
1 task
@russellwheatley
Copy link
Member

russellwheatley commented Apr 8, 2024

@Lyokone - it appears these references also need to be removed (according to the open issue):

https://github.com/firebase/flutterfire/blob/dea46c4ca89eda879befb0dbce4190f4090d6d48/packages/firebase_storage/firebase_storage/example/lib/save_as/save_as.dart#L6-L5

if (dart.library.js) 'package:firebase_core_web/firebase_core_web_interop.dart'

Other than that, it LGTM.

@Lyokone Lyokone added the blocked: do-not-merge PR blocked externally label Apr 8, 2024
@Lyokone
Copy link
Contributor Author

Lyokone commented Apr 8, 2024

Still looking into cleaning this conditional import

EDIT: found the doc: https://dart.dev/interop/js-interop/package-web#conditional-imports

@Lyokone Lyokone removed the blocked: do-not-merge PR blocked externally label Apr 8, 2024
@Lyokone Lyokone merged commit fbffedb into master Apr 8, 2024
20 of 21 checks passed
@Lyokone Lyokone deleted the fix/12597 branch April 8, 2024 13:27

// Clear the children in our container so we can add an element to click
target.children.clear();
for (int i = 0; i < target.children.length; i++) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this will work. The length will reduce every call, so maybe only n/2 items will be removed.

Maybe better to do a do/while?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we only have a length of 1, but maybe it's isn't the case in some places.
Updated the example app code here: #12614

LocLt-Mobile pushed a commit to guide-inc-org/guide-flutter_fire that referenced this pull request Apr 16, 2024
* fix(web): remove remaining references to dart:html

* remove conditionnal import

* fix conditional import
@firebase firebase locked and limited conversation to collaborators May 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Still 3 references to dart:html
5 participants