Skip to content

Commit 33d3e4b

Browse files
authored
Reland TabBarTheme normalization (#155969)
Reland flutter/flutter#155476 with test fix. The test fix uses the method mentioned in flutter/flutter#155476 (comment).
1 parent f7fb0f1 commit 33d3e4b

File tree

4 files changed

+489
-99
lines changed

4 files changed

+489
-99
lines changed

dev/tools/gen_defaults/lib/tabs_template.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class TabsTemplate extends TokenTemplate {
1212

1313
@override
1414
String generate() => '''
15-
class _${blockName}PrimaryDefaultsM3 extends TabBarTheme {
15+
class _${blockName}PrimaryDefaultsM3 extends TabBarThemeData {
1616
_${blockName}PrimaryDefaultsM3(this.context, this.isScrollable)
1717
: super(indicatorSize: TabBarIndicatorSize.label);
1818
@@ -91,7 +91,7 @@ class _${blockName}PrimaryDefaultsM3 extends TabBarTheme {
9191
static const EdgeInsetsGeometry iconMargin = EdgeInsets.only(bottom: 2);
9292
}
9393
94-
class _${blockName}SecondaryDefaultsM3 extends TabBarTheme {
94+
class _${blockName}SecondaryDefaultsM3 extends TabBarThemeData {
9595
_${blockName}SecondaryDefaultsM3(this.context, this.isScrollable)
9696
: super(indicatorSize: TabBarIndicatorSize.tab);
9797

0 commit comments

Comments
 (0)