colorPicker property
A custom color picker widget for the text editor.
editorState
- The current state of the editor.rebuildStream
- A Stream that triggers the widget to rebuild.currentColor
- The currently selected color.setColor
- A function to update the selected color.
Returns an optional ReactiveCustomWidget that provides a custom color picker.
Example: colorPicker: (editor, rebuildStream, currentColor, setColor) => ReactiveCustomWidget( stream: rebuildStream, builder: (_) => BarColorPicker( configs: editor.configs, length: 200, horizontal: false, initialColor: currentColor, colorListener: (int value) { setColor(Color(value)); }, ), ),
Implementation
final CustomColorPicker<TextEditorState>? colorPicker;