Skip to content

Commit c859bcf

Browse files
committed
Update theme.dart
1 parent 46f587f commit c859bcf

File tree

1 file changed

+4
-4
lines changed
  • boring_to_beautiful/step_07/lib/src/shared/providers

1 file changed

+4
-4
lines changed

boring_to_beautiful/step_07/lib/src/shared/providers/theme.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ class ThemeProvider extends InheritedWidget {
8787
ShapeBorder get shapeMedium =>
8888
RoundedRectangleBorder(borderRadius: BorderRadius.circular(8));
8989

90-
CardTheme cardTheme() {
91-
return CardTheme(
90+
CardThemeData cardTheme() {
91+
return CardThemeData(
9292
elevation: 0,
9393
shape: shapeMedium,
9494
clipBehavior: Clip.antiAlias,
@@ -110,8 +110,8 @@ class ThemeProvider extends InheritedWidget {
110110
);
111111
}
112112

113-
TabBarTheme tabBarTheme(ColorScheme colors) {
114-
return TabBarTheme(
113+
TabBarThemeData tabBarTheme(ColorScheme colors) {
114+
return TabBarThemeData(
115115
labelColor: colors.secondary,
116116
unselectedLabelColor: colors.onSurfaceVariant,
117117
indicator: BoxDecoration(

0 commit comments

Comments
 (0)