From 4bcb73fd25984881e44cabaec4f05500c5137d0c Mon Sep 17 00:00:00 2001 From: Xin Yao Date: Tue, 1 Jun 2021 12:19:09 -0700 Subject: [PATCH] Format code --- lib/src/widgets/cursor.dart | 2 +- lib/src/widgets/text_line.dart | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/src/widgets/cursor.dart b/lib/src/widgets/cursor.dart index 9fef16e5..763d396d 100644 --- a/lib/src/widgets/cursor.dart +++ b/lib/src/widgets/cursor.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 = diff --git a/lib/src/widgets/text_line.dart b/lib/src/widgets/text_line.dart index 90f7ceff..d95923d3 100644 --- a/lib/src/widgets/text_line.dart +++ b/lib/src/widgets/text_line.dart @@ -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; }