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

Add showNotification and showBannerMessage to extension API #6276

Merged
merged 10 commits into from
Aug 29, 2023

Conversation

kenzieschmoll
Copy link
Member

Screen.Recording.2023-08-28.at.4.44.38.PM.mov

Work towards #1632

@kenzieschmoll kenzieschmoll requested a review from a team as a code owner August 29, 2023 04:37
@kenzieschmoll kenzieschmoll requested review from bkonyi and removed request for a team August 29, 2023 04:37
@@ -53,3 +53,79 @@ class DevToolsExtensionEvent {

/// A void callback that handles a [DevToolsExtensionEvent].
typedef ExtensionEventHandler = void Function(DevToolsExtensionEvent event);

class ShowNotificationExtensionEvent extends DevToolsExtensionEvent {
Copy link
Contributor

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.

Copy link
Member Author

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.

Copy link
Member Author

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

@kenzieschmoll kenzieschmoll merged commit 428d1c4 into flutter:master Aug 29, 2023
15 checks passed
@kenzieschmoll kenzieschmoll deleted the ext-api-more branch August 29, 2023 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants