-
Notifications
You must be signed in to change notification settings - Fork 344
Show menu for snapshot instances. #5003
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
packages/devtools_app/lib/src/screens/memory/panes/diff/widgets/classes_table_single.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/screens/memory/shared/primitives/instance_set_view.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/screens/memory/shared/primitives/instance_set_view.dart
Outdated
Show resolved
Hide resolved
SubmenuButton( | ||
menuChildren: <Widget>[ | ||
MenuItemButton( | ||
onPressed: () => print('get fields'), |
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.
Is there any way we can make this constant? I assume this closure is what's preventing this entire List
from being constant.
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.
the menu items are going to have real functional handlers, so no chances it will stay constant
} | ||
} | ||
|
||
List<Widget> _menu() => [ |
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.
Nit: if we're not doing any work here, we should probably just make this a property (ideally const
).
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.
The menu will get real actions in future PRs and this method will have parameters.
RELEASE_NOTE_EXCEPTION=[under the flag]
Design
Screen.Recording.2023-01-03.at.11.13.53.AM.mov