Visitar URL original
Replaced obsolete use of FlatButton with TextButton by HansMuller · Pull Request #66597 · flutter/flutter · GitHub
Skip to content

Replaced obsolete use of FlatButton with TextButton - #66597

Merged
HansMuller merged 2 commits into
flutter:masterfrom
HansMuller:update_buttons_in_text_selection_menu
Sep 25, 2020
Merged

HansMuller merged 2 commits into
flutter:masterfrom
HansMuller:update_buttons_in_text_selection_menu

Conversation

@HansMuller

Copy link
Copy Markdown
Contributor

Replaced the one use of FlatButton in _TextSelectionToolbar with TextButton and removed its dependency on ButtonTheme per #59702.

@flutter-dashboard flutter-dashboard Bot added p: material_ui material_ui package in flutter/packages framework flutter/packages/flutter repository. See also f: labels. labels Sep 24, 2020
@justinmc
justinmc self-requested a review September 24, 2020 22:35

@justinmc justinmc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, glad we can update the text selection menu buttons 👍

child: FlatButton(
onPressed: itemData.onPressed,

// TODO(hansmuller): Should be colorScheme.onSurface

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just pointing out this TODO in case you forgot it, otherwise I assume it's for another PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll open an issue. The onSurface color causes a tiny difference, black instead of "black87", which causes some golden image tests to fail. Will need to do a separate update to change the color.

@HansMuller
HansMuller merged commit 890e6cc into flutter:master Sep 25, 2020
@HansMuller
HansMuller deleted the update_buttons_in_text_selection_menu branch September 25, 2020 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants