refactor: override FlexiTheme for Sizes

This commit is contained in:
2024-01-06 03:59:54 +08:00
parent 702a0f94c5
commit 21de4f19ff

View File

@@ -32,7 +32,17 @@ fun FlexiTheme(
colors: Colors = FlexiTheme.colors, colors: Colors = FlexiTheme.colors,
shapes: Shapes = FlexiTheme.shapes, shapes: Shapes = FlexiTheme.shapes,
typography: Typography = FlexiTheme.typography, typography: Typography = FlexiTheme.typography,
sizes: Sizes = FlexiTheme.sizes, content: @Composable () -> Unit
) {
FlexiTheme(colors, shapes, typography, FlexiTheme.sizes, content)
}
@Composable
fun FlexiTheme(
colors: Colors = FlexiTheme.colors,
shapes: Shapes = FlexiTheme.shapes,
typography: Typography = FlexiTheme.typography,
sizes: Sizes,
content: @Composable () -> Unit content: @Composable () -> Unit
) { ) {
CompositionLocalProvider( CompositionLocalProvider(