Make CursorPainter constructor named

pull/518/head
X Code 3 years ago
parent 4c6390bfa5
commit 2b8fc44a5d
  1. 14
      lib/src/widgets/cursor.dart
  2. 10
      lib/src/widgets/text_line.dart

@ -228,13 +228,13 @@ class CursorCont extends ChangeNotifier {
/// Paints the editing cursor.
class CursorPainter {
CursorPainter(
this.editable,
this.style,
this.prototype,
this.color,
this.devicePixelRatio,
);
CursorPainter({
required this.editable,
required this.style,
required this.prototype,
required this.color,
required this.devicePixelRatio,
});
final RenderContentProxyBox? editable;
final CursorStyle style;

@ -815,11 +815,11 @@ class RenderEditableTextLine extends RenderEditableBox {
}
CursorPainter get _cursorPainter => CursorPainter(
_body,
cursorCont.style,
_caretPrototype!,
cursorCont.color.value,
devicePixelRatio,
editable: _body,
style: cursorCont.style,
prototype: _caretPrototype!,
color: cursorCont.color.value,
devicePixelRatio: devicePixelRatio,
);
@override

Loading…
Cancel
Save