rangeSliderSuffixBuilder function
A FastRangeSliderSuffixBuilder
that is used as the default
FastRangeSlider.suffixBuilder.
Returns a SizedBox that contains a centered Text widget that shows RangeValues.end of the current FastRangeSliderState.value converted to a String.
Implementation
Widget rangeSliderSuffixBuilder(FastRangeSliderState field) {
return SizedBox(
width: 48.0,
child: Center(
child: Text(
field.value!.end.toStringAsFixed(0),
style: const TextStyle(
fontSize: 16.0,
),
),
),
);
}