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.
This commit is contained in:
@@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
|
|||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
// Changes made in https://github.com/flutter/flutter/pull/48547
|
// Changes made in https://github.com/flutter/flutter/pull/48547
|
||||||
var TextTheme textTheme = TextTheme(
|
var textTheme = TextTheme(
|
||||||
display4: displayStyle4,
|
display4: displayStyle4,
|
||||||
display3: displayStyle3,
|
display3: displayStyle3,
|
||||||
display2: displayStyle2,
|
display2: displayStyle2,
|
||||||
@@ -21,10 +21,10 @@ void main() {
|
|||||||
subtitle: subtitleStyle,
|
subtitle: subtitleStyle,
|
||||||
overline: overlineStyle,
|
overline: overlineStyle,
|
||||||
);
|
);
|
||||||
var TextTheme textTheme = TextTheme(error: '');
|
var errorTextTheme = TextTheme(error: '');
|
||||||
|
|
||||||
// Changes made in https://github.com/flutter/flutter/pull/48547
|
// Changes made in https://github.com/flutter/flutter/pull/48547
|
||||||
var TextTheme copiedTextTheme = TextTheme.copyWith(
|
var copiedTextTheme = TextTheme.copyWith(
|
||||||
display4: displayStyle4,
|
display4: displayStyle4,
|
||||||
display3: displayStyle3,
|
display3: displayStyle3,
|
||||||
display2: displayStyle2,
|
display2: displayStyle2,
|
||||||
@@ -39,7 +39,7 @@ void main() {
|
|||||||
subtitle: subtitleStyle,
|
subtitle: subtitleStyle,
|
||||||
overline: overlineStyle,
|
overline: overlineStyle,
|
||||||
);
|
);
|
||||||
var TextTheme copiedTextTheme = TextTheme.copyWith(error: '');
|
var errorCopiedTextTheme = TextTheme.copyWith(error: '');
|
||||||
|
|
||||||
// Changes made in https://github.com/flutter/flutter/pull/48547
|
// Changes made in https://github.com/flutter/flutter/pull/48547
|
||||||
var style;
|
var style;
|
||||||
@@ -58,7 +58,7 @@ void main() {
|
|||||||
style = textTheme.overline;
|
style = textTheme.overline;
|
||||||
|
|
||||||
// Changes made in https://github.com/flutter/flutter/pull/109817
|
// Changes made in https://github.com/flutter/flutter/pull/109817
|
||||||
var TextTheme textTheme = TextTheme(
|
var anotherTextTheme = TextTheme(
|
||||||
headline1: headline1Style,
|
headline1: headline1Style,
|
||||||
headline2: headline2Style,
|
headline2: headline2Style,
|
||||||
headline3: headline3Style,
|
headline3: headline3Style,
|
||||||
@@ -73,10 +73,10 @@ void main() {
|
|||||||
button: buttonStyle,
|
button: buttonStyle,
|
||||||
overline: overlineStyle,
|
overline: overlineStyle,
|
||||||
);
|
);
|
||||||
var TextTheme textTheme = TextTheme(error: '');
|
var anotherErrorTextTheme = TextTheme(error: '');
|
||||||
|
|
||||||
// Changes made in https://github.com/flutter/flutter/pull/109817
|
// Changes made in https://github.com/flutter/flutter/pull/109817
|
||||||
var TextTheme copiedTextTheme = TextTheme.copyWith(
|
var anotherCopiedTextTheme = TextTheme.copyWith(
|
||||||
headline1: headline1Style,
|
headline1: headline1Style,
|
||||||
headline2: headline2Style,
|
headline2: headline2Style,
|
||||||
headline3: headline3Style,
|
headline3: headline3Style,
|
||||||
@@ -91,7 +91,7 @@ void main() {
|
|||||||
button: buttonStyle,
|
button: buttonStyle,
|
||||||
overline: overlineStyle,
|
overline: overlineStyle,
|
||||||
);
|
);
|
||||||
var TextTheme copiedTextTheme = TextTheme.copyWith(error: '');
|
var anotherErrorCopiedTextTheme = TextTheme.copyWith(error: '');
|
||||||
|
|
||||||
// Changes made in https://github.com/flutter/flutter/pull/109817
|
// Changes made in https://github.com/flutter/flutter/pull/109817
|
||||||
var style;
|
var style;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
|
|||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
// Changes made in https://github.com/flutter/flutter/pull/48547
|
// Changes made in https://github.com/flutter/flutter/pull/48547
|
||||||
var TextTheme textTheme = TextTheme(
|
var textTheme = TextTheme(
|
||||||
displayLarge: displayStyle4,
|
displayLarge: displayStyle4,
|
||||||
displayMedium: displayStyle3,
|
displayMedium: displayStyle3,
|
||||||
displaySmall: displayStyle2,
|
displaySmall: displayStyle2,
|
||||||
@@ -21,10 +21,10 @@ void main() {
|
|||||||
titleSmall: subtitleStyle,
|
titleSmall: subtitleStyle,
|
||||||
labelSmall: overlineStyle,
|
labelSmall: overlineStyle,
|
||||||
);
|
);
|
||||||
var TextTheme textTheme = TextTheme(error: '');
|
var errorTextTheme = TextTheme(error: '');
|
||||||
|
|
||||||
// Changes made in https://github.com/flutter/flutter/pull/48547
|
// Changes made in https://github.com/flutter/flutter/pull/48547
|
||||||
var TextTheme copiedTextTheme = TextTheme.copyWith(
|
var copiedTextTheme = TextTheme.copyWith(
|
||||||
displayLarge: displayStyle4,
|
displayLarge: displayStyle4,
|
||||||
displayMedium: displayStyle3,
|
displayMedium: displayStyle3,
|
||||||
displaySmall: displayStyle2,
|
displaySmall: displayStyle2,
|
||||||
@@ -39,7 +39,7 @@ void main() {
|
|||||||
titleSmall: subtitleStyle,
|
titleSmall: subtitleStyle,
|
||||||
labelSmall: overlineStyle,
|
labelSmall: overlineStyle,
|
||||||
);
|
);
|
||||||
var TextTheme copiedTextTheme = TextTheme.copyWith(error: '');
|
var errorCopiedTextTheme = TextTheme.copyWith(error: '');
|
||||||
|
|
||||||
// Changes made in https://github.com/flutter/flutter/pull/48547
|
// Changes made in https://github.com/flutter/flutter/pull/48547
|
||||||
var style;
|
var style;
|
||||||
@@ -58,7 +58,7 @@ void main() {
|
|||||||
style = textTheme.labelSmall;
|
style = textTheme.labelSmall;
|
||||||
|
|
||||||
// Changes made in https://github.com/flutter/flutter/pull/109817
|
// Changes made in https://github.com/flutter/flutter/pull/109817
|
||||||
var TextTheme textTheme = TextTheme(
|
var anotherTextTheme = TextTheme(
|
||||||
displayLarge: headline1Style,
|
displayLarge: headline1Style,
|
||||||
displayMedium: headline2Style,
|
displayMedium: headline2Style,
|
||||||
displaySmall: headline3Style,
|
displaySmall: headline3Style,
|
||||||
@@ -73,10 +73,10 @@ void main() {
|
|||||||
labelLarge: buttonStyle,
|
labelLarge: buttonStyle,
|
||||||
labelSmall: overlineStyle,
|
labelSmall: overlineStyle,
|
||||||
);
|
);
|
||||||
var TextTheme textTheme = TextTheme(error: '');
|
var anotherErrorTextTheme = TextTheme(error: '');
|
||||||
|
|
||||||
// Changes made in https://github.com/flutter/flutter/pull/109817
|
// Changes made in https://github.com/flutter/flutter/pull/109817
|
||||||
var TextTheme copiedTextTheme = TextTheme.copyWith(
|
var anotherCopiedTextTheme = TextTheme.copyWith(
|
||||||
displayLarge: headline1Style,
|
displayLarge: headline1Style,
|
||||||
displayMedium: headline2Style,
|
displayMedium: headline2Style,
|
||||||
displaySmall: headline3Style,
|
displaySmall: headline3Style,
|
||||||
@@ -91,7 +91,7 @@ void main() {
|
|||||||
labelLarge: buttonStyle,
|
labelLarge: buttonStyle,
|
||||||
labelSmall: overlineStyle,
|
labelSmall: overlineStyle,
|
||||||
);
|
);
|
||||||
var TextTheme copiedTextTheme = TextTheme.copyWith(error: '');
|
var anotherErrorCopiedTextTheme = TextTheme.copyWith(error: '');
|
||||||
|
|
||||||
// Changes made in https://github.com/flutter/flutter/pull/109817
|
// Changes made in https://github.com/flutter/flutter/pull/109817
|
||||||
var style;
|
var style;
|
||||||
|
|||||||
Reference in New Issue
Block a user