color Chooser
@Composable
Content copied to clipboard
Parameters
colors
a list of colors for the user to choose. See ColorPalette for predefined colors
sub Colors
a list of subsets of colors for the user to choose from once a main color from colors has been chosen. See ColorPalette for predefined sub-colors colors
initial Selection
the index of the color which is selected initially
argb Picker State
controls the behaviour of custom argb picker
wait For Positive Button
if true the onColorSelected callback will only be called when the positive button is pressed, otherwise it will be called when the a new color is selected
on Color Selected
a function which is called with a Color. The timing of this call is dictated by waitForPositiveButton