painting.dart 786 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/painting.dart';

void main() {
  // Change made in https://github.com/flutter/flutter/pull/121152
  final EdgeInsets insets = EdgeInsets.fromWindowPadding(ViewPadding.zero, 3.0);
10 11 12 13 14 15 16 17 18 19 20

  // Change made in https://github.com/flutter/flutter/pull/128522
  const TextStyle textStyle = TextStyle()
    ..getTextStyle(textScaleFactor: math.min(_kTextScaleFactor, 1.0))
    ..getTextStyle();

  TextPainter(text: inlineSpan);
  TextPainter(textScaleFactor: someValue);

  TextPainter.computeWidth(textScaleFactor: textScaleFactor);
  TextPainter.computeMaxIntrinsicWidth(textScaleFactor: textScaleFactor);
21
}