Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit b44034c

Browse files
author
Yuncong Zhang
committed
[1.5.4] Cleanup text painter.
1 parent 0c9dfb5 commit b44034c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/painting/text_painter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Collections.Generic;
2-
using System.Runtime.CompilerServices;
32
using Unity.UIWidgets.foundation;
43
using Unity.UIWidgets.service;
54
using Unity.UIWidgets.ui;
@@ -8,7 +7,6 @@
87
using Rect = Unity.UIWidgets.ui.Rect;
98

109
namespace Unity.UIWidgets.painting {
11-
1210
class _CaretMetrics {
1311
public _CaretMetrics(Offset offset, float? fullHeight) {
1412
this.offset = offset;
@@ -18,6 +16,7 @@ public _CaretMetrics(Offset offset, float? fullHeight) {
1816
public Offset offset;
1917
public float? fullHeight;
2018
}
19+
2120
public class TextPainter {
2221
TextSpan _text;
2322
TextAlign _textAlign;
@@ -254,6 +253,7 @@ void _computeCaretMetrics(TextPosition position, Rect caretPrototype) {
254253
if (position == this._previousCaretPosition && caretPrototype == this._previousCaretPrototype) {
255254
return;
256255
}
256+
257257
var offset = position.offset;
258258
Rect rect;
259259
switch (position.affinity) {

0 commit comments

Comments
 (0)