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
Update segmented buttons to support Material 3 #103529
Comments
It would be nice if the API aligned with the Cupertino segmented control, it looks probably more similar than |
Probably better to build a new widget, can then also improve its API and features, plus name align it with the M3 name too. ToggleButtons have some limitations, like does not implement |
cc: @rydmike Thanks for the feedback!
This looks to be true.
Investigating this. |
cc: @rydmike @darrenaustin @HansMuller After reading Segmented buttons specs and some native Android testing.
Aside from minor improvements stated in #103529 (comment) which are already required addressing in M2 ToggleButtons, there is no significant difference. I will defer to other team members for the widget name update. (In my testing I noticed even Android API doesn't have an updated name for SegementedButtons, it simply refers to
|
Yes, there is FilledButton now. #107382 |
Oh nice, didn't know. It makes sense it needed some styling to achieve the but this is not the case for |
After looking more closely at this, I think we should create a new |
Thanks @darrenaustin, I also think that is a good call. Looking forward to seeing the results! 👍🏻 |
@darrenaustin It sounds good! Definitely a bigger project, thanks for taking this. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
As part of the Material 3 specification there are updates to the Segmented Button visuals:
The Flutter Material library currently has a
ToggleButtons
class that we should either update to support Material 3 or build a new widget if they are not close enough in functionality.The text was updated successfully, but these errors were encountered: