Tgo1014
10/27/2023, 8:11 AM@PreviewParameter
to all the preview methods? Is it possible to create a custom preview annotation that does this?
@Preview
@Composable
fun ComposeTest(
@PreviewParameter(ThemeProvider::class) brand: Brand,
) = CustomTheme(brand) {
CustomButton(onClick = { /*TODO*/ }) {
Text(text = "Click me")
}
}
Stylianos Gakis
10/27/2023, 8:54 AMTgo1014
10/27/2023, 8:56 AMyschimke
10/27/2023, 8:58 AMTgo1014
10/27/2023, 9:04 AMyschimke
10/27/2023, 10:32 AMTgo1014
10/27/2023, 10:39 AM