From 67f9ec1a7889946fb920fbb7a9c96c75d0722b7b Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Fri, 6 Jun 2025 09:58:21 -0700 Subject: [PATCH] fix: make usable with flutter 3.32.0 --- lib/src/theme.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/theme.dart b/lib/src/theme.dart index fec381a..c40ab29 100644 --- a/lib/src/theme.dart +++ b/lib/src/theme.dart @@ -82,7 +82,7 @@ class AdwaitaThemeData { /// A default light theme. static ThemeData light({String? fontFamily}) => ThemeData( fontFamily: fontFamily, - tabBarTheme: TabBarTheme(labelColor: _lightColorScheme.onSurface), + tabBarTheme: TabBarThemeData(labelColor: _lightColorScheme.onSurface), brightness: Brightness.light, splashFactory: NoSplash.splashFactory, primaryColor: _lightColorScheme.primary, @@ -93,7 +93,7 @@ class AdwaitaThemeData { color: _lightColorScheme.onSurface.withOpacity(0.12), ), dialogBackgroundColor: _lightColorScheme.background, - dialogTheme: DialogTheme( + dialogTheme: DialogThemeData( backgroundColor: _lightColorScheme.background, shape: getDialogShape(Colors.black), ), @@ -142,7 +142,7 @@ class AdwaitaThemeData { /// A default dark theme. static ThemeData dark({String? fontFamily}) => ThemeData( fontFamily: fontFamily, - tabBarTheme: TabBarTheme(labelColor: _darkColorScheme.onBackground), + tabBarTheme: TabBarThemeData(labelColor: _darkColorScheme.onBackground), brightness: Brightness.dark, splashFactory: NoSplash.splashFactory, primaryColor: _darkColorScheme.primary, @@ -153,7 +153,7 @@ class AdwaitaThemeData { color: _darkColorScheme.onSurface.withOpacity(0.12), ), dialogBackgroundColor: _darkColorScheme.background, - dialogTheme: DialogTheme( + dialogTheme: DialogThemeData( backgroundColor: _darkColorScheme.background, shape: getDialogShape(), ),