flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.58k stars 326 forks source link

Migrate to pkg:web #6606

Closed kevmoo closed 5 months ago

kevmoo commented 11 months ago

Required to support compilation to wasm

Googlers: go/wasm-ready-pkg-migrate

kenzieschmoll commented 11 months ago

migrations for devtools_app that are not straightforward, or just need a little more attention to figure out:

kevmoo commented 11 months ago

Console:

https://pub.dev/documentation/web/0.3.0/helpers/console.html https://pub.dev/documentation/web/0.3.0/helpers/$ConsoleExtension.html

srujzs commented 11 months ago
kenzieschmoll commented 11 months ago

@srujzs re: MouseEvent, what about the dataTransfer property? event.dataTransfer.dropEffect = 'move';

re: createObjectURL - more issues: Screenshot 2023-11-09 at 2 59 46 PM Screenshot 2023-11-09 at 3 00 39 PM

re: html.window.onMessage

srujzs commented 11 months ago
kenzieschmoll commented 11 months ago

Thanks @srujzs. Getting closer! A few more errors to go:

srujzs commented 11 months ago

Nice!

kevmoo commented 11 months ago

Closing this out as completed via https://github.com/flutter/devtools/pull/6626 - still waiting for dependencies to migrate so we can build w/ wasm

kenzieschmoll commented 11 months ago

Everything has been migrated to package:web except for one file: https://github.com/flutter/devtools/blob/master/packages/devtools_app/lib/src/shared/config_specific/post_message/_post_message_web.dart#L5-L9. Removing this is blocked on a new version of package:web getting rolled into flutter.

However, if we want to start experimenting with dart2wasm now, apply the changes from this patch and it should compile fine: https://github.com/flutter/devtools/compare/master...kenzieschmoll:dart2wasm-experiment?expand=1.

@kevmoo

kevmoo commented 11 months ago

Reopening then. To stay on top of https://github.com/flutter/devtools/issues/6606#issuecomment-1809080582

kevmoo commented 10 months ago

Glad we're getting numbers on this. I think the only concrete thing blocking us is either migrating the inline gtags or moving to unified_analytics.

Is the latter tracked anywhere?

kenzieschmoll commented 10 months ago

migrating to unified_analytics is tracked here: https://github.com/flutter/devtools/issues/6242. This is something that @eliasyishak may be picking up in the short term.