INNER CODE UNIT · Dart
MaterialPicker
mchome/flutter_colorpicker · lib/src/material_picker.dart:10
class MaterialPicker extends StatefulWidget {
const MaterialPicker({
Key? key,
required this.pickerColor,
required this.onColorChanged,
this.onPrimaryChanged,
this.enableLabel = false,
this.portraitOnly = false,
}) : super(key: key);
final Color pickerColor;
final ValueChanged<Color> onColorChanged;
final ValueChanged<Color>? onPrimaryChanged;
final bool enableLabel;
final bool portraitOnly;
@override
State<StatefulWidget> createState() => _MaterialPickerState();