fix: List item use the incorrect shapes for rendering template (#7089)
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
This commit is contained in:
1 parent
83a1bd1a3f
commit
6b8577cef8
2 files changed
+2
-2
No files matched your search
@@ -81,7 +81,7 @@ fun WarningPreference(
|
||||
draggedShape = MaterialTheme.shapes.large,
|
||||
)
|
||||
} else {
|
||||
ListItemDefaults.segmentedShapes(index = 0, count = 1)
|
||||
ListItemDefaults.shapes()
|
||||
},
|
||||
colors = colors,
|
||||
)
|
||||
|
||||
@@ -47,7 +47,7 @@ fun PreferenceTemplate(
|
||||
description: (@Composable () -> Unit)? = null,
|
||||
startWidget: (@Composable () -> Unit)? = null,
|
||||
endWidget: (@Composable () -> Unit)? = null,
|
||||
shapes: ListItemShapes = ListItemDefaults.segmentedShapes(index = 0, count = 1),
|
||||
shapes: ListItemShapes = ListItemDefaults.shapes(),
|
||||
onClick: (() -> Unit)? = null,
|
||||
colors: ListItemColors = ListItemDefaults.segmentedColors(
|
||||
containerColor = MaterialTheme.colorScheme.surfaceContainer,
|
||||
|
||||
Reference in new issue
Block a user