From 4eece4efc66a20c16ddc4a348b07eb87cd21510d Mon Sep 17 00:00:00 2001 From: Haseeb ur Rehman Date: Tue, 23 Nov 2021 07:30:38 +0500 Subject: [PATCH] body2 changed to bodyText2 updates to work with latest bodyText2 - body is deprecated --- 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, ), );