From 6ebda5d69847cf460e8e34684589ffdb7a09e3e4 Mon Sep 17 00:00:00 2001 From: Abdol Hussain Mozaffari Date: Thu, 16 Sep 2021 09:14:23 +0430 Subject: [PATCH] Fix Deprecated body2 --- lib/src/flutter_range_slider.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/flutter_range_slider.dart b/lib/src/flutter_range_slider.dart index 872a0c5..b9fb7af 100644 --- a/lib/src/flutter_range_slider.dart +++ b/lib/src/flutter_range_slider.dart @@ -469,7 +469,7 @@ class _RangeSliderState extends State showValueIndicator: sliderTheme.showValueIndicator ?? _defaultShowValueIndicator, valueIndicatorTextStyle: sliderTheme.valueIndicatorTextStyle ?? - theme.textTheme.body2.copyWith( + theme.textTheme.bodyText2.copyWith( color: theme.colorScheme.onPrimary, ), );