text_theme.dart.expect 3.49 KB
Newer Older
1 2 3 4 5 6 7 8
// 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/material.dart';

void main() {
  // Changes made in https://github.com/flutter/flutter/pull/48547
9
  var textTheme = TextTheme(
10 11 12 13 14 15 16 17 18 19 20 21 22 23
    displayLarge: displayStyle4,
    displayMedium: displayStyle3,
    displaySmall: displayStyle2,
    headlineMedium: displayStyle1,
    headlineSmall: headlineStyle,
    titleLarge: titleStyle,
    titleMedium: subheadStyle,
    bodyLarge: body2Style,
    bodyMedium: body1Style,
    bodySmall: captionStyle,
    labelLarge: buttonStyle,
    titleSmall: subtitleStyle,
    labelSmall: overlineStyle,
  );
24
  var errorTextTheme = TextTheme(error: '');
25 26

  // Changes made in https://github.com/flutter/flutter/pull/48547
27
  var copiedTextTheme = TextTheme.copyWith(
28 29 30 31 32 33 34 35 36 37 38 39 40 41
    displayLarge: displayStyle4,
    displayMedium: displayStyle3,
    displaySmall: displayStyle2,
    headlineMedium: displayStyle1,
    headlineSmall: headlineStyle,
    titleLarge: titleStyle,
    titleMedium: subheadStyle,
    bodyLarge: body2Style,
    bodyMedium: body1Style,
    bodySmall: captionStyle,
    labelLarge: buttonStyle,
    titleSmall: subtitleStyle,
    labelSmall: overlineStyle,
  );
42
  var errorCopiedTextTheme = TextTheme.copyWith(error: '');
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

  // Changes made in https://github.com/flutter/flutter/pull/48547
  var style;
  style = textTheme.displayLarge;
  style = textTheme.displayMedium;
  style = textTheme.displaySmall;
  style = textTheme.headlineMedium;
  style = textTheme.headlineSmall;
  style = textTheme.titleLarge;
  style = textTheme.titleMedium;
  style = textTheme.bodyLarge;
  style = textTheme.bodyMedium;
  style = textTheme.bodySmall;
  style = textTheme.labelLarge;
  style = textTheme.titleSmall;
  style = textTheme.labelSmall;

  // Changes made in https://github.com/flutter/flutter/pull/109817
61
  var anotherTextTheme = TextTheme(
62 63 64 65 66 67 68 69 70 71 72 73 74 75
    displayLarge: headline1Style,
    displayMedium: headline2Style,
    displaySmall: headline3Style,
    headlineMedium: headline4Style,
    headlineSmall: headline5Style,
    titleLarge: headline6Style,
    titleMedium: subtitle1Style,
    titleSmall: subtitle2Style,
    bodyLarge: bodyText1Style,
    bodyMedium: bodyText2Style,
    bodySmall: captionStyle,
    labelLarge: buttonStyle,
    labelSmall: overlineStyle,
  );
76
  var anotherErrorTextTheme = TextTheme(error: '');
77 78

  // Changes made in https://github.com/flutter/flutter/pull/109817
79
  var anotherCopiedTextTheme = TextTheme.copyWith(
80 81 82 83 84 85 86 87 88 89 90 91 92 93
    displayLarge: headline1Style,
    displayMedium: headline2Style,
    displaySmall: headline3Style,
    headlineMedium: headline4Style,
    headlineSmall: headline5Style,
    titleLarge: headline6Style,
    titleMedium: subtitle1Style,
    titleSmall: subtitle2Style,
    bodyLarge: bodyText1Style,
    bodyMedium: bodyText2Style,
    bodySmall: captionStyle,
    labelLarge: buttonStyle,
    labelSmall: overlineStyle,
  );
94
  var anotherErrorCopiedTextTheme = TextTheme.copyWith(error: '');
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111

  // Changes made in https://github.com/flutter/flutter/pull/109817
  var style;
  style = textTheme.displayLarge;
  style = textTheme.displayMedium;
  style = textTheme.displaySmall;
  style = textTheme.headlineMedium;
  style = textTheme.headlineSmall;
  style = textTheme.titleLarge;
  style = textTheme.titleMedium;
  style = textTheme.titleSmall;
  style = textTheme.bodyLarge;
  style = textTheme.bodyMedium;
  style = textTheme.bodySmall;
  style = textTheme.labelLarge;
  style = textTheme.labelSmall;
}