Lines Matching refs:button
94 // avoid multipurpose components: for example, this button solves more than 1 problem
97 // problem 1: button is a clickable rectangle
99 // problem 2: button is a check/uncheck checkbox-like component
109 // problem 1: button is a clickable rectangle
115 // problem 1: button is a check/uncheck checkbox-like component
298 // This button is called ContainedButton in the spec
320 fun Button(...) {} // simple name that feel like a first-class button
519 // button is a colored rect that clicks, so background
859 This pattern allows the button to have no opinion on the content, while playing the role of drawing…
863 It might be tempting to write the button as follows:
875 Where either text or icon or both are present, leaving the button to arrange the show. While it han…
877 …TextStyle` parameters as well, plus some other ones. This will bloat the API of the button quickly.
878 …heir own `MyTextWithLogging()` component, they might want to use it in a button to do some additio…
880 … special icon that they want to put with a custom arrangement (e.g. on a button’s text baseline or…
917 …make sense to provide `RowScope` in a content slot, making it easier for the user to use the button
1243 …s (`Icon`’s contentDescription or `Text`’s text) will be merged into the button. Refer to the [off…