From 2fb721ce0c373d338ca4cd5a09ea1909c2028c20 Mon Sep 17 00:00:00 2001 From: Mohammad Esmaili <76443648+mohhamad-esmaili@users.noreply.github.com> Date: Mon, 3 Jan 2022 11:56:27 +0330 Subject: [PATCH] Convert 'body2' into 'bodyText1' for theme for update version of flutter instead of body2 we should use bodyText1. --- 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..42ed220 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.bodyText1.copyWith( color: theme.colorScheme.onPrimary, ), );