Roar Gronmo
12/02/2019, 1:35 PMLouis Pullen-Freilich [G]
12/02/2019, 2:15 PMRoar Gronmo
12/02/2019, 2:15 PMLouis Pullen-Freilich [G]
12/02/2019, 2:15 PMButton
overload that takes children
, and just add a Row
of an image and text if you want, so at least the rest of it will be correctly styledRoar Gronmo
12/02/2019, 3:18 PMButton(onClick = {},
style = ContainedButtonStyle()
){
Row(mainAxisSize = LayoutSize.Expand
){
VectorImage(id = R.drawable.ic_baseline_edit_24)
WidthSpacer(width = 16.dp)
Text(
text = "UPDATE",
style = +themeTextStyle { button })
}
}
VectorImage
is the same used in the "JetNews" examplecrossAxisAlignment = CrossAxisAlignment.Center
, but it will be still better with an icon parameter.Louis Pullen-Freilich [G]
12/02/2019, 3:30 PM