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. /// Paints the editing cursor.
class CursorPainter { class CursorPainter {
CursorPainter( CursorPainter({
this.editable, required this.editable,
this.style, required this.style,
this.prototype, required this.prototype,
this.color, required this.color,
this.devicePixelRatio, required this.devicePixelRatio,
); });
final RenderContentProxyBox? editable; final RenderContentProxyBox? editable;
final CursorStyle style; final CursorStyle style;

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

Loading…
Cancel
Save