DeviceSimulation
fun DeviceSimulation(deviceType: DeviceType, color: Color, useDarkTheme: Boolean, style: PaletteStyle, contrast: Contrast, selectedColor: Color, onColorSelected: (Color) -> Unit, selectedStateIndicator: @Composable BoxScope.(isSelected: Boolean) -> Unit? = null)
A composable function that simulates different devices with customizable appearance.
Parameters
deviceType
The type of the device being simulated.
color
The seed color for the theme.
useDarkTheme
Boolean to toggle dark theme.
style
The style of the palette.
contrast
The contrast level for the theme.
selectedColor
The color that is currently selected.
onColorSelected
Callback for when a color is selected.
selectedStateIndicator
A composable that defines the visual representation of the selected state.