title property

Widget? title
final

Title widget for the color picker.

Typically a Text widget, e.g. Text('ColorPicker'). If not provided or null, there is no title on the toolbar of the color picker.

This widget can be used instead of heading or with it, depends on design need.

If no TextStyle is provided in the Text widget, then it uses Theme.of(context).textTheme.titleLarge as default, same as the default style in a Material3 app bar title.

If the Text widget does not fit in the available space, it will be truncated with an ellipsis.

The title widget is like an app bar title in the sense that at the end of it, 1 to 4 actions buttons may also be present for copy, paste, select-close and cancel-close. The select-close and cancel-close actions should only be enabled when the picker is used in a dialog. The copy and paste actions can be enabled also when the picker is not in a dialog.

Implementation

final Widget? title;