We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f18b2b commit 94fe091Copy full SHA for 94fe091
lib/src/code_field/code_field.dart
@@ -514,7 +514,7 @@ class _CodeFieldState extends State<CodeField> {
514
widget.controller.selection.base,
515
Rect.zero,
516
);
517
- return (widget.controller.selection.base.offset > 0) ? caretFullHeight! : 0;
+ return caretFullHeight ?? 0;
518
}
519
520
double _getPopupLeftOffset(TextPainter textPainter) {
0 commit comments