I'm trying to get the basic RangeSlider working with the labels showing the start end ranges of the labels. Below is the most simplified you can make it...a container that contains the slider. For whatever reason, the labels do not appear? I've looked at other samples, and this should be trivial, but can't figure out why it's not showing the labels? Could this be a bug?
class _TestScreenState extends State<TestScreen> {
RangeValues _values = RangeValues(15, 30);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Testing formatting'),
),
body: Container(
child: RangeSlider(
values: _values,
min:1,
max: 60,
labels: RangeLabels('${_values.start.round()}', '${_values.end.round()}'),
onChanged: (RangeValues values) {
setState(() {
_values = values;
});
},
),
),
drawer: SideDrawer(),
);
}
Update: Figured it out, not sure if it's by default, but I needed to specify a SliderTheme, and then within the sliderTheme, provide SlideThemeData and set the showvalueindicator to showvalueIndactor.always. Then it started to appear.