Repository navigation
[material_ui] Fix M3 doc errors in the ElevatedButton and FilledButton - #13685
Merged
auto-submit[bot] merged 12 commits intoNov 20, 2026
Merged
Conversation
QuncCccccc
commented
Nov 18, 2026
Comment on lines
-219
to
-223
| /// The button's elevations are defined relative to the [elevation] | ||
| /// parameter. The disabled elevation is the same as the parameter | ||
| /// value, [elevation] + 2 is used when the button is hovered | ||
| /// or focused, and elevation + 6 is used when the button is pressed. | ||
| /// |
Contributor
Author
There was a problem hiding this comment.
These are incorrectly copy pasty from Elevated button, so I removed it.
QuncCccccc
marked this pull request as ready for review
November 18, 2026 02:29
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the documentation for several button widgets, including ElevatedButton, FilledButton, and ButtonStyleButton, to correct descriptions of visual behaviors like elevation and shadows, update padding and default values, and fix minor typos. The feedback points out a missing preposition in the FilledButton documentation to improve grammatical correctness.
elliette
previously approved these changes
Nov 18, 2026
elliette
left a comment
Member
There was a problem hiding this comment.
LGTM once the text reflow changes are made
Co-authored-by: Elliott Brooks <[email protected]>
Co-authored-by: Elliott Brooks <[email protected]>
elliette
approved these changes
Nov 19, 2026
opensource-fork-sync Bot
pushed a commit
to cla7aye15I4nd/opensource-flutter__flutter
that referenced
this pull request
Nov 20, 2026
…er#197056) flutter/packages@81b7c44...898818d 2026-11-20 [email protected] [material_ui] Use correct time format for Sinhala locale (flutter/packages#13645) 2026-11-20 [email protected] [material_ui] Fix showModalBottomSheet safe area on display-feature sub-screens (flutter/packages#13428) 2026-11-20 [email protected] [material_ui] Fix M3 doc errors in the `ElevatedButton` and `FilledButton` (flutter/packages#13685) 2026-11-19 [email protected] [video_player] Convert implementation to Kotlin (flutter/packages#13683) 2026-11-19 [email protected] [flutter_svg] Add SvgLoader.provideSvgInIsolate for unsendable loaders (flutter/packages#13598) 2026-11-19 [email protected] [VPAT] Expose modal drawers with the dialog semantics role (flutter/packages#13660) 2026-11-19 [email protected] [VPAT] Keep a11y_assessments tooltips open while hovered (flutter/packages#13657) 2026-11-19 [email protected] [flutter_svg] Stabilize network SVG cache keys (flutter/packages#13597) 2026-11-19 [email protected] [image_picker_ios] Return an error instead of an empty file when an image cannot be saved (flutter/packages#12998) 2026-11-19 [email protected] [cupertino_ui] Fix CupertinoNavigationBarBackButton assertion debug (flutter/packages#13397) 2026-11-19 [email protected] [go_router] Document when GoRouterState.name and path are null (flutter/packages#13486) If this roll has caused a breakage, revert this CL and set the roller to dry run mode using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
11 tasks done
auto-submit Bot
pushed a commit
that referenced
this pull request
Nov 25, 2026
…#13739) This PR fixes the parts of the `OutlinedButton` and `TextButton` docs that don't match the code, the same kinds of errors that #13685 fixed for `ElevatedButton` and `FilledButton`. It doesn't change any behavior. * Class docs: `OutlinedButton` said that `OutlinedButtonTheme` overrides the style of all text buttons in a subtree, and `TextButton` said that the button fills with its background color when touched, instead of its overlay color. * Padding: fixes the padding of `OutlinedButton.icon` and `TextButton.icon`, the font size thresholds (42, not 36), and the Material 2 and Material 3 padding of `TextButton`, which were mixed up. The Material 3 docs now list the `TextButton.icon` padding too. * Default style lists: adds the missing `iconSize` and `iconColor` of both buttons and the focused outline of `OutlinedButton`, and corrects `surfaceTintColor` and the outdated Material 2 `textStyle` and `overlayColor`. * Fixes a few grammar mistakes and typos. Follow-up to #13685 Part of flutter/flutter#184937 ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes the parts of the
ElevatedButtonandFilledButtondocs that don't match the code. It doesn't change any behavior.FilledButton's docs listedElevatedButton's elevations,ElevatedButton.styleFromgave the wrong disabled elevation, and several docs saidElevatedButtonelevates when pressed, which isn't true in Material 3.ElevatedButton.icon.iconSizeandiconColor, and corrects the outdated Material 2 defaults of both buttons.ElevatedButton.styleFromstill uses Material 2 elevation offsets for hovered, focused, and pressed buttons. This PR only documents them, and I filed flutter/flutter#196845 for later fix.Pre-Review Checklist
[shared_preferences]///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2