Format code

pull/249/head
Xin Yao 4 years ago
parent 6707181184
commit 4bcb73fd25
  1. 2
      lib/src/widgets/cursor.dart
  2. 6
      lib/src/widgets/text_line.dart

@ -101,7 +101,7 @@ class CursorCont extends ChangeNotifier {
required this.show,
required CursorStyle style,
required TickerProvider tickerProvider,
}) : _style = style,
}) : _style = style,
blink = ValueNotifier(false),
color = ValueNotifier(style.color) {
_blinkOpacityController =

@ -628,7 +628,8 @@ class RenderEditableTextLine extends RenderEditableBox {
: _leading!.getMinIntrinsicWidth(height - verticalPadding).ceil();
final bodyWidth = _body == null
? 0
: _body!.getMinIntrinsicWidth(math.max(0, height - verticalPadding))
: _body!
.getMinIntrinsicWidth(math.max(0, height - verticalPadding))
.ceil();
return horizontalPadding + leadingWidth + bodyWidth;
}
@ -643,7 +644,8 @@ class RenderEditableTextLine extends RenderEditableBox {
: _leading!.getMaxIntrinsicWidth(height - verticalPadding).ceil();
final bodyWidth = _body == null
? 0
: _body!.getMaxIntrinsicWidth(math.max(0, height - verticalPadding))
: _body!
.getMaxIntrinsicWidth(math.max(0, height - verticalPadding))
.ceil();
return horizontalPadding + leadingWidth + bodyWidth;
}

Loading…
Cancel
Save