-
Notifications
You must be signed in to change notification settings - Fork 327
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
Add showNotification
and showBannerMessage
to extension API
#6276
Conversation
packages/devtools_extensions/example/foo_devtools_extension/lib/main.dart
Show resolved
Hide resolved
@@ -53,3 +53,79 @@ class DevToolsExtensionEvent { | |||
|
|||
/// A void callback that handles a [DevToolsExtensionEvent]. | |||
typedef ExtensionEventHandler = void Function(DevToolsExtensionEvent event); | |||
|
|||
class ShowNotificationExtensionEvent extends DevToolsExtensionEvent { |
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.
Are these classes accessible to developers? If so, we need documentation for them.
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.
moved to a file that is not exported to the user. Users should send events through the ExtensionManager. We can always expose later if we need to.
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.
Update: I missed that we use these classes from devtools_app to parse, so made them public and documented in model.dart
Screen.Recording.2023-08-28.at.4.44.38.PM.mov
Work towards #1632