-
Notifications
You must be signed in to change notification settings - Fork 344
Work towards migrating devtools_app
to package:web
#6626
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
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.
Thanks for doing this migration, and sorry for so much feedback!
packages/devtools_app/lib/src/extensions/embedded/_view_web.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/extensions/embedded/_view_web.dart
Outdated
Show resolved
Hide resolved
@@ -166,7 +165,7 @@ class PerfettoControllerImpl extends PerfettoController { | |||
); | |||
_initialized = true; | |||
|
|||
_perfettoIFrame = html.IFrameElement() | |||
_perfettoIFrame = createElementTag('iframe') as HTMLIFrameElement |
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.
Note that this cast is okay in contrast with the cast above. You're casting between interop types and you know it's that type. I think this isn't a lint in the future with extension types.
Migrates most of
devtools_app
to usepackage:web
. There are a handful of remaining uses to migrate that are not straightforward or wherepackage:web
is missing some getters. I documented those on #6606.I also cleaned up some of the conditional imports while I was here (renaming files, removing unnecessary stub files, etc.).