浏览代码

Merge branch 'yczhang1.5.4' into added_gesture_parameters

/main
Yuncong Zhang 5 年前
当前提交
dcdc8773
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Runtime/painting/text_painter.cs

4
Runtime/painting/text_painter.cs


using System.Collections.Generic;
using System.Runtime.CompilerServices;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.service;
using Unity.UIWidgets.ui;

namespace Unity.UIWidgets.painting {
class _CaretMetrics {
public _CaretMetrics(Offset offset, float? fullHeight) {
this.offset = offset;

public Offset offset;
public float? fullHeight;
}
public class TextPainter {
TextSpan _text;
TextAlign _textAlign;

if (position == this._previousCaretPosition && caretPrototype == this._previousCaretPrototype) {
return;
}
var offset = position.offset;
Rect rect;
switch (position.affinity) {

正在加载...
取消
保存