Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir-P committed Mar 27, 2024
1 parent b0b2277 commit b149fb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/fleather/lib/src/widgets/editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1583,18 +1583,18 @@ class RawEditorState extends EditorState
if (!mounted) {
return;
}
final bottomBiewInset = View.of(context).viewInsets.bottom;
if (_lastBottomViewInset != bottomBiewInset) {
final bottomViewInset = View.of(context).viewInsets.bottom;
if (_lastBottomViewInset != bottomViewInset) {
SchedulerBinding.instance.addPostFrameCallback((_) {
_selectionOverlay?.updateForScroll();
});
if (_lastBottomViewInset < bottomBiewInset) {
if (_lastBottomViewInset < bottomViewInset) {

Check warning on line 1591 in packages/fleather/lib/src/widgets/editor.dart

View check run for this annotation

Codecov / codecov/patch

packages/fleather/lib/src/widgets/editor.dart#L1586-L1591

Added lines #L1586 - L1591 were not covered by tests
// Because the metrics change signal from engine will come here every frame
// (on both iOS and Android). So we don't need to show caret with animation.
_showCaretOnScreen(false);

Check warning on line 1594 in packages/fleather/lib/src/widgets/editor.dart

View check run for this annotation

Codecov / codecov/patch

packages/fleather/lib/src/widgets/editor.dart#L1594

Added line #L1594 was not covered by tests
}
}
_lastBottomViewInset = bottomBiewInset;
_lastBottomViewInset = bottomViewInset;
}

Check warning on line 1599 in packages/fleather/lib/src/widgets/editor.dart

View check run for this annotation

Codecov / codecov/patch

packages/fleather/lib/src/widgets/editor.dart#L1597-L1599

Added lines #L1597 - L1599 were not covered by tests
// On MacOS some actions are sent as selectors. We need to manually find the right Action and invoke it.
Expand Down

0 comments on commit b149fb7

Please sign in to comment.