A question about the 'SelectedButton' component #52
Replies: 2 comments
-
Toggle is technically the same as SelectedButton, but looking at the design spec, I don't think it should be merged. SelectedButton takes two style parameters that define the selected state and the unselected state. Meanwhile, Toggle uses one style and will be overridden to |
Beta Was this translation helpful? Give feedback.
-
I kept thinking about it what came to my mind is: But now that I'm thinking about it would really bring any benefits just make things confusing. |
Beta Was this translation helpful? Give feedback.
-
I was working on the docs, and when I got to the
SelectedButton
widget, it looked very similar to theToggle
widget the main difference is that theSelectedButton
allows you to choose the selected style.Why not combine it with the toggle selected style? or is there a use for it that I'm not aware of?
Beta Was this translation helpful? Give feedback.
All reactions