Skip to content

Commit

Permalink
fix: set onSemanticsUpdate to empty function
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed May 6, 2024
1 parent 2ac307a commit 44780bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/src/bindings/pipeline_owner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ class SimulatorPipelineOwner extends PipelineOwner {
VoidCallback? onAfterFlushCompositingBits;
VoidCallback? onAfterFlushPaint;

SimulatorPipelineOwner()
: super(
// Prevents crash on Linux from non-null assertion
// (https://github.com/kekland/simulator/issues/1)
onSemanticsUpdate: (_) {},
);

@override
void flushCompositingBits() {
super.flushCompositingBits();
Expand Down

0 comments on commit 44780bd

Please sign in to comment.