Update todos

pull/1596/head
Ellet 1 year ago
parent 9b4b37fe67
commit 83020a17fb
No known key found for this signature in database
GPG Key ID: C488CC70BBCEF0D1
  1. 1
      CHANGELOG.md
  2. 4
      lib/src/widgets/raw_editor/raw_editor_state_text_input_client_mixin.dart
  3. 2
      lib/src/widgets/toolbar/buttons/toggle_style_button.dart

@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
## 9.0.2-dev.1
* Add configurations for the new dropdown `QuillToolbarSelectHeaderStyleButton`, you can use the orignal one or this
* Fix the [issue](https://github.com/singerdmx/flutter-quill/issues/1119) when enter is pressed, all font settings is lost
## 9.0.2-dev
* **Breaking change** Remove the spacer widget, removed the controller option for each button

@ -219,7 +219,7 @@ mixin RawEditorStateTextInputClientMixin on EditorState
);
}
// TODO: A bug here too
// TODO: The same bug here
if (widget.configurations.controller.selectedFontSize != null) {
widget.configurations.controller.formatSelection(
@ -233,6 +233,8 @@ mixin RawEditorStateTextInputClientMixin on EditorState
);
}
// TODO: The same bug here
widget.configurations.controller.selectedStyles.forEach((key, value) {
if (value ?? false) {
widget.configurations.controller.formatSelection(key);

@ -227,7 +227,7 @@ class QuillToolbarToggleStyleButtonState
? Attribute.clone(widget.attribute, null)
: widget.attribute,
)
..selectStyle(widget.attribute, _isToggled == true ? true : false);
..selectStyle(widget.attribute, _isToggled ?? false);
}
}

Loading…
Cancel
Save