Skip to content

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

Merged
merged 4 commits into from
Jan 3, 2023
Merged

Show menu for snapshot instances. #5003

merged 4 commits into from
Jan 3, 2023

Conversation

polina-c
Copy link
Contributor

@polina-c polina-c commented Jan 3, 2023

RELEASE_NOTE_EXCEPTION=[under the flag]

Design

Screen.Recording.2023-01-03.at.11.13.53.AM.mov

@polina-c polina-c marked this pull request as ready for review January 3, 2023 19:59
@polina-c polina-c requested review from bkonyi and a team as code owners January 3, 2023 19:59
SubmenuButton(
menuChildren: <Widget>[
MenuItemButton(
onPressed: () => print('get fields'),
Copy link
Contributor

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.

Copy link
Contributor Author

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() => [
Copy link
Contributor

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).

Copy link
Contributor Author

@polina-c polina-c Jan 3, 2023

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.

@polina-c polina-c merged commit bfe5d2c into flutter:master Jan 3, 2023
@polina-c polina-c deleted the menu branch January 3, 2023 21:32
@CoderDake CoderDake mentioned this pull request Jan 24, 2023
7 tasks
@DartDevtoolWorkflowBot DartDevtoolWorkflowBot mentioned this pull request Jan 24, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants