ColorPickerDialog

@Composable
fun ColorPickerDialog(controller: SketchbookController? = null, expanded: MutableState<Boolean>, backgroundColor: Color = Color.White, selectText: String = "Select", initialColor: Color? = null, onColorSelected: (Color) -> Unit? = null)

A color picker dialog to get a desired color from users.

Parameters

controller

SketchbookController to notify color selected.

backgroundColor

A background color of the dialog.

selectText

Text for the select button.

expanded

Indicates expanding dialog or not.

onColorSelected

A color selected listener.