Ngenge Senior
11/12/2019, 10:48 AM@Composable
fun MaterialCard() {
val image = +imageResource(R.drawable.photographer)
Card(shape = RoundedCornerShape(size = 8.dp)) {
Column(modifier = Spacing(16.dp)) {
SimpleImage(image = image)
Text("A day in Shark Fin Cove",style = (+themeTextStyle { h6 }).withOpacity(.6f))
Text("Davenport, California",style = (+themeTextStyle { body2 }).withOpacity(.87f))
Text("December, 2018",style = (+themeTextStyle { body2 }).withOpacity(0.6f))
Row() {
Button(text = "Got it",style = ContainedButtonStyle(rippleColor = Color.Green))
Button(text = "Cancel",style = TextButtonStyle())
}
}
}
}
Luca Nicoletti
11/12/2019, 10:51 AMVerticalScroller
Ngenge Senior
11/12/2019, 11:49 AMAdam Powell
11/12/2019, 2:19 PMVerticalScroller
always centers its content if the content is smaller than the scrolling parent has already been fixed upstream 🙂Luca Nicoletti
11/12/2019, 2:20 PMdev02
or do we need to use repo
?Adam Powell
11/12/2019, 2:24 PMAdam Powell
11/12/2019, 2:25 PM