https://kotlinlang.org logo
c

Carminelaface

06/23/2020, 9:26 AM
Hi guys, I have one question, I just saw this in the androidx.ui.material package
Copy code
/**
 * Contains the default values used by [Button]
 */
object Button {
    
    /**
     * The default inner padding used by [Button]
     */
    val DefaultInnerPadding = ...

    /**
     * The default disabled background color used by Contained [Button]s
     */
    @Composable
    val defaultDisabledBackgroundColor
        
    /**
     * The default disabled content color used by all types of [Button]s
     */
    @Composable
    val defaultDisabledContentColor
}
This is not only for the button but for many other views. I think a better naming for the object would be
ButtonDefalutValues
or
ButtonDefaluts
and remove the
default
suffix from all the properties.
6 Views