Yoshio Schermer
02/24/2022, 8:08 AM@Preview(theme = MyTheme)
@Composable
fun PreviewComposable(){
Text(text = "foo")
}
Anand Verma
02/24/2022, 8:41 AMZun
02/24/2022, 9:54 AMZun
02/24/2022, 9:55 AMYoshio Schermer
02/24/2022, 2:32 PMAnand Verma
02/24/2022, 2:34 PMAdam Powell
02/24/2022, 3:10 PM@Composable
fun PreviewComposable() = MyPreviewTheme {
Text(text = "foo")
}
Adam Powell
02/24/2022, 3:11 PMYoshio Schermer
02/24/2022, 3:35 PMYoshio Schermer
02/24/2022, 3:38 PMAdam Powell
02/24/2022, 4:52 PM@Preview(theme = MyTheme)
on every preview composable is less tedious than adding = MyTheme
before your opening {
for the composable? 🤔Adam Powell
02/24/2022, 4:52 PMZach Klippenstein (he/him) [MOD]
02/24/2022, 7:14 PMChris Sinco [G]
02/26/2022, 1:52 AMYoshio Schermer
02/28/2022, 8:32 AMAdam Powell
02/28/2022, 3:46 PMAdam Powell
02/28/2022, 3:48 PMAdam Powell
02/28/2022, 3:49 PMAdam Powell
02/28/2022, 3:50 PMAdam Powell
02/28/2022, 3:57 PM