seb
01/15/2020, 2:14 PMAdam Powell
01/15/2020, 2:21 PMseb
01/15/2020, 2:42 PMAdam Powell
01/15/2020, 2:51 PMAdam Powell
01/15/2020, 2:51 PMthemePreview
in those examplesAdam Powell
01/15/2020, 2:53 PM@Preview("Article screen")
@Composable
fun previewArticle() = themedPreview {
ArticleScreen(post3.id)
}
Adam Powell
01/15/2020, 2:54 PM@Preview
to have special knowledge of it, especially since I'm not even sure what extending that to support other parameterization that doesn't come from us would even look likeAdam Powell
01/15/2020, 2:55 PMseb
01/15/2020, 3:05 PMseb
01/15/2020, 3:06 PMAdam Powell
01/15/2020, 3:11 PM@Preview
, which would allow for things like dropdown selection, etc. in the preview paneAdam Powell
01/15/2020, 3:12 PMAdam Powell
01/15/2020, 3:13 PMseb
01/15/2020, 3:19 PMseb
01/15/2020, 3:19 PMAdam Powell
01/15/2020, 3:24 PMAdam Powell
01/15/2020, 3:24 PMandroid.widget.Button
Adam Powell
01/15/2020, 3:24 PMButtonStyle
object and just have different button composables 😄seb
01/15/2020, 3:26 PMAdam Powell
01/15/2020, 3:47 PMAdam Powell
01/15/2020, 3:49 PMWidget
vs. List<Widget>
there. Since Compose uses the emit style that's not an option. We think the emit style is the right tradeoff since it permits a lot more natural control flow within what is otherwise a familiar kotlin DSL styleAdam Powell
01/15/2020, 3:50 PMAdam Powell
01/15/2020, 3:51 PMAdam Powell
01/15/2020, 3:53 PMPadding(16.dp) {
Text("one")
Text("two")
}
would need to be defined in what it means, and every definition we tried confused some subset of the team or UX study participants. The modifier style is precise; you're passing a configuration parameter to a defined layout node.Adam Powell
01/15/2020, 3:56 PMAdam Powell
01/15/2020, 3:58 PMseb
01/15/2020, 3:58 PMseb
01/15/2020, 3:59 PMAdam Powell
01/15/2020, 3:59 PMseb
01/15/2020, 3:59 PMseb
01/15/2020, 4:00 PMseb
01/15/2020, 4:00 PM