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.
2 parents 0f18b2b + 94fe091 commit dc2b466Copy full SHA for dc2b466
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