13302296C / flutter_rte

Flutter HTML WYSIWYG rich text editor
MIT License
3 stars 8 forks source link

Cannot retrieve the background color #8

Open lucabonaserawep opened 6 months ago

lucabonaserawep commented 6 months ago

Using the following code:

widget.controller.callbacks.onChangeSelection = (text) {
  setState(() {
    textColorSelected = text.foregroundColor;
    backgroundColorSelected = text.backgroundColor;
  });
};

The value of text.background is always: Color(0x00000000)

I would need to retrieve the value of the background color.

Is there any way to retrieve the background color?