PreviewWrapper
fun PreviewWrapper(padding: PaddingValues = PaddingValues(16.dp), contentPadding: Dp = 16.dp, color: @Composable () -> Color = { SparkTheme.colors.background }, content: @Composable ColumnScope.() -> Unit)
A wrapper composable that provides a consistent preview environment for other composables using Spark.
This composable creates a Surface with a padding, and place the content inside a Column.
Parameters
padding
The padding to be applied to the Surface.
contentPadding
The vertical spacing between the items in the Column.
color
A lambda that returns the color of the Surface.
content
The composable you want to showcase in the preview.