Unverified Commit 42fb0b23 authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Fix text theme dart fix cases (#125052)

Fixes https://github.com/flutter/flutter/issues/125049

This is blocking the dart roll, dart fix will now fix some invalid code that was in these test cases. These test case files are un-analyzed intentionally because they are by nature samples of broken code.
parent d4e1209c
......@@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
void main() {
// Changes made in https://github.com/flutter/flutter/pull/48547
var TextTheme textTheme = TextTheme(
var textTheme = TextTheme(
display4: displayStyle4,
display3: displayStyle3,
display2: displayStyle2,
......@@ -21,10 +21,10 @@ void main() {
subtitle: subtitleStyle,
overline: overlineStyle,
);
var TextTheme textTheme = TextTheme(error: '');
var errorTextTheme = TextTheme(error: '');
// Changes made in https://github.com/flutter/flutter/pull/48547
var TextTheme copiedTextTheme = TextTheme.copyWith(
var copiedTextTheme = TextTheme.copyWith(
display4: displayStyle4,
display3: displayStyle3,
display2: displayStyle2,
......@@ -39,7 +39,7 @@ void main() {
subtitle: subtitleStyle,
overline: overlineStyle,
);
var TextTheme copiedTextTheme = TextTheme.copyWith(error: '');
var errorCopiedTextTheme = TextTheme.copyWith(error: '');
// Changes made in https://github.com/flutter/flutter/pull/48547
var style;
......@@ -58,7 +58,7 @@ void main() {
style = textTheme.overline;
// Changes made in https://github.com/flutter/flutter/pull/109817
var TextTheme textTheme = TextTheme(
var anotherTextTheme = TextTheme(
headline1: headline1Style,
headline2: headline2Style,
headline3: headline3Style,
......@@ -73,10 +73,10 @@ void main() {
button: buttonStyle,
overline: overlineStyle,
);
var TextTheme textTheme = TextTheme(error: '');
var anotherErrorTextTheme = TextTheme(error: '');
// Changes made in https://github.com/flutter/flutter/pull/109817
var TextTheme copiedTextTheme = TextTheme.copyWith(
var anotherCopiedTextTheme = TextTheme.copyWith(
headline1: headline1Style,
headline2: headline2Style,
headline3: headline3Style,
......@@ -91,7 +91,7 @@ void main() {
button: buttonStyle,
overline: overlineStyle,
);
var TextTheme copiedTextTheme = TextTheme.copyWith(error: '');
var anotherErrorCopiedTextTheme = TextTheme.copyWith(error: '');
// Changes made in https://github.com/flutter/flutter/pull/109817
var style;
......
......@@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
void main() {
// Changes made in https://github.com/flutter/flutter/pull/48547
var TextTheme textTheme = TextTheme(
var textTheme = TextTheme(
displayLarge: displayStyle4,
displayMedium: displayStyle3,
displaySmall: displayStyle2,
......@@ -21,10 +21,10 @@ void main() {
titleSmall: subtitleStyle,
labelSmall: overlineStyle,
);
var TextTheme textTheme = TextTheme(error: '');
var errorTextTheme = TextTheme(error: '');
// Changes made in https://github.com/flutter/flutter/pull/48547
var TextTheme copiedTextTheme = TextTheme.copyWith(
var copiedTextTheme = TextTheme.copyWith(
displayLarge: displayStyle4,
displayMedium: displayStyle3,
displaySmall: displayStyle2,
......@@ -39,7 +39,7 @@ void main() {
titleSmall: subtitleStyle,
labelSmall: overlineStyle,
);
var TextTheme copiedTextTheme = TextTheme.copyWith(error: '');
var errorCopiedTextTheme = TextTheme.copyWith(error: '');
// Changes made in https://github.com/flutter/flutter/pull/48547
var style;
......@@ -58,7 +58,7 @@ void main() {
style = textTheme.labelSmall;
// Changes made in https://github.com/flutter/flutter/pull/109817
var TextTheme textTheme = TextTheme(
var anotherTextTheme = TextTheme(
displayLarge: headline1Style,
displayMedium: headline2Style,
displaySmall: headline3Style,
......@@ -73,10 +73,10 @@ void main() {
labelLarge: buttonStyle,
labelSmall: overlineStyle,
);
var TextTheme textTheme = TextTheme(error: '');
var anotherErrorTextTheme = TextTheme(error: '');
// Changes made in https://github.com/flutter/flutter/pull/109817
var TextTheme copiedTextTheme = TextTheme.copyWith(
var anotherCopiedTextTheme = TextTheme.copyWith(
displayLarge: headline1Style,
displayMedium: headline2Style,
displaySmall: headline3Style,
......@@ -91,7 +91,7 @@ void main() {
labelLarge: buttonStyle,
labelSmall: overlineStyle,
);
var TextTheme copiedTextTheme = TextTheme.copyWith(error: '');
var anotherErrorCopiedTextTheme = TextTheme.copyWith(error: '');
// Changes made in https://github.com/flutter/flutter/pull/109817
var style;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment