Skip to content

setFullScreen makes background color to white when the List formatting is done to the selected Text #579

@nandhakumarc24

Description

@nandhakumarc24

Describe the bug
When we use the HtmlEditorController.setFullScreen() after the onInit callback, and if we use the unorderedList formatting, then it makes the entire text's background color to white making it unreadable.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the example app of this project.
  2. Add the following in the HtmlEditor callbacks
onInit: () {
                 print('init');
                 controller.setFullScreen();
               } 
  1. Make darkMode: true in the HtmlEditorOptions().
  2. Run the project and type in the words, select it and use the List Formatting in the top (here unordered list is used)

Expected behavior
It should make the Text to be Listed without changing its background color.

Screenshots

Image
Image

Device:
iOS Simulator 16e

Additional context
This is happening in the darkMode. Found out that is added with background-color: rgb(255, 255, 255); when we do this.

Image

Flutter 3.29.3
Tools • Dart 3.7.2 • DevTools 2.42.3
html_editor_enhanced: 2.7.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions