From c0a9af668a25c54870491dc031e58c25bec75e28 Mon Sep 17 00:00:00 2001 From: Matnex Mix <41128554+matnex-mix@users.noreply.github.com> Date: Sat, 1 Jan 2022 09:04:48 +0100 Subject: [PATCH] updated texttheme api implementation for recent flutter version --- lib/smart_tabbar.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/smart_tabbar.dart b/lib/smart_tabbar.dart index a5f196e..a5af0f8 100644 --- a/lib/smart_tabbar.dart +++ b/lib/smart_tabbar.dart @@ -698,12 +698,12 @@ class _TabStyle extends AnimatedWidget { // the same value of inherit. Force that to be inherit=true here. final TextStyle defaultStyle = (labelStyle ?? tabBarTheme.labelStyle ?? - themeData.primaryTextTheme.body2) + themeData.primaryTextTheme.bodyText2) .copyWith(inherit: true); final TextStyle defaultUnselectedStyle = (unselectedLabelStyle ?? tabBarTheme.unselectedLabelStyle ?? labelStyle ?? - themeData.primaryTextTheme.body2) + themeData.primaryTextTheme.bodyText2) .copyWith(inherit: true); final TextStyle textStyle = selected ? TextStyle.lerp(defaultStyle, defaultUnselectedStyle, animation.value) @@ -711,7 +711,7 @@ class _TabStyle extends AnimatedWidget { final Color selectedColor = labelColor ?? tabBarTheme.labelColor ?? - themeData.primaryTextTheme.body2.color; + themeData.primaryTextTheme.bodyText2.color; final Color unselectedColor = unselectedLabelColor ?? tabBarTheme.unselectedLabelColor ?? selectedColor.withAlpha(0xB2); // 70% alpha