dhimandasgupta
07/04/2020, 5:59 PM@Composable
fun RenderArticle(article: ArticleUIModel) {
Divider(thickness = 8.dp, color = MaterialTheme.colors.surface)
Surface(shape = shapes.medium, elevation = 8.dp, color = MaterialTheme.colors.surface, modifier = Modifier.fillMaxWidth()) {
Column(modifier = Modifier.padding(8.dp)) {
Text(
text = article.title,
style = MaterialTheme.typography.h6,
color = MaterialTheme.colors.onSurface,
modifier = Modifier.padding(bottom = 4.dp)
)
Divider(thickness = 2.dp, color = MaterialTheme.colors.surface)
Text(
text = article.description,
style = MaterialTheme.typography.body1,
color = MaterialTheme.colors.onSurface,
modifier = Modifier.padding(top = 4.dp)
)
}
}
Divider(thickness = 8.dp, color = MaterialTheme.colors.surface)
}
pavi2410
07/04/2020, 7:27 PMpavi2410
07/04/2020, 7:29 PMdhimandasgupta
07/04/2020, 9:28 PM