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