Skip to content

Commit

Permalink
fix: Color picker hex field
Browse files Browse the repository at this point in the history
  • Loading branch information
geronimol committed Dec 12, 2024
1 parent 2f136c9 commit be6f1d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/toolbar/buttons/color/color_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ class ColorPickerDialogState extends State<ColorPickerDialog> {
@override
void initState() {
super.initState();
hexController =
TextEditingController(text: color_picker.colorToHex(selectedColor));
if (widget.isToggledColor) {
selectedColor = widget.isBackground
? hexToColor(widget.selectionStyle.attributes['background']?.value)
: hexToColor(widget.selectionStyle.attributes['color']?.value);
}
hexController =
TextEditingController(text: color_picker.colorToHex(selectedColor));
}

@override
Expand Down

0 comments on commit be6f1d5

Please sign in to comment.