Guy Bieber
08/19/2020, 6:58 PMGuy Bieber
08/19/2020, 8:14 PMGuy Bieber
08/19/2020, 11:24 PMGuy Bieber
08/20/2020, 12:26 AMmatvei
08/20/2020, 9:58 AMjim
08/20/2020, 10:06 AMGuy Bieber
08/20/2020, 4:32 PMinterface IUiStyled {
@Composable
fun TextLabelStyled(
text: String,
color : Color,
fontSize : TextUnit = 18.sp,
modifier : Modifier = Modifier
)
}
class UiStyled : IUiStyled {
@Composable
override fun TextLabelStyled(
text: String,
color : Color,
fontSize : TextUnit,
modifier : Modifier
) {
Text(
text = text,
modifier = modifier,
style = TextStyle(
color = color,
fontSize = fontSize
)
)
}
}
Modifier will be null and the fontSize will be zero.jim
08/20/2020, 5:54 PMlouiscad
08/20/2020, 5:55 PMlouiscad
08/20/2020, 5:57 PMlouiscad
08/20/2020, 5:57 PMjim
08/20/2020, 6:00 PMGuy Bieber
08/20/2020, 6:01 PMlouiscad
08/20/2020, 6:02 PM