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