Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for an inconsistency in the HueRingPicker #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/src/colorpicker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ class HueRingPicker extends StatefulWidget {
this.hueRingStrokeWidth = 20.0,
this.enableAlpha = false,
this.displayThumbColor = true,
this.disableTextInput = false,
this.pickerAreaBorderRadius = const BorderRadius.all(Radius.zero),
}) : super(key: key);

Expand All @@ -663,6 +664,8 @@ class HueRingPicker extends StatefulWidget {
final double hueRingStrokeWidth;
final bool enableAlpha;
final bool displayThumbColor;
/// Disables the ability to manually edit the ColorPicker TextInput Field
final bool disableTextInput;
final BorderRadius pickerAreaBorderRadius;

@override
Expand Down Expand Up @@ -746,6 +749,7 @@ class _HueRingPickerState extends State<HueRingPicker> {
},
enableAlpha: widget.enableAlpha,
embeddedText: true,
disable: widget.disableTextInput,
),
),
),
Expand Down Expand Up @@ -790,7 +794,7 @@ class _HueRingPickerState extends State<HueRingPicker> {
},
enableAlpha: widget.enableAlpha,
embeddedText: true,
disable: true,
disable: widget.disableTextInput,
),
if (widget.enableAlpha) const SizedBox(height: 5),
if (widget.enableAlpha)
Expand Down