Skip to content

Commit

Permalink
EditableTextLine is a repaint boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
amantoux committed Aug 10, 2024
1 parent b31e126 commit 9798d06
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/fleather/lib/src/rendering/editable_text_block.dart
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ class RenderEditableTextBlock extends RenderEditableContainerBox

// End RenderEditableBox implementation

@override
bool isRepaintBoundary = true;

@override
void detach() {
_painter?.dispose();
Expand Down
3 changes: 3 additions & 0 deletions packages/fleather/lib/src/rendering/editable_text_line.dart
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,9 @@ class RenderEditableTextLine extends RenderEditableBox {

bool _attachedToCursorController = false;

@override
bool isRepaintBoundary = true;

@override
void attach(covariant PipelineOwner owner) {
super.attach(owner);
Expand Down
3 changes: 3 additions & 0 deletions packages/fleather/lib/src/rendering/embed_proxy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import 'editable_box.dart';
class RenderEmbedProxy extends RenderProxyBox implements RenderContentProxyBox {
RenderEmbedProxy({RenderBox? child}) : super(child);

@override
bool isRepaintBoundary = true;

@override
List<TextBox> getBoxesForSelection(TextSelection selection) {
if (selection.isCollapsed) {
Expand Down

0 comments on commit 9798d06

Please sign in to comment.