Use case
It is possible to set the conditions under which the value indicator on a Slider will be shown by setting showValueIndicator in SliderTheme. However, Slider itself is lacking the showValueIndicator property.
When a user wants to override the showValueIndicator for a specific Slider, they have to wrap it into SliderTheme to achieve the desired behavior.
SliderTheme(
data: SliderThemeData(
showValueIndicator: ShowValueIndicator.alwaysVisible,
),
child: Slider(
value: 0.5,
label: '0.5',
onChanged: (double value) {},
),
),
Proposal
Add Slider.showValueIndicator property to allow user to set the conditions under which the value indicator will be shown for a specific Slider.
Slider(
value: 0.5,
label: '0.5',
onChanged: (double value) {},
mouseCursor: SystemMouseCursors.click,
showValueIndicator: ShowValueIndicator.alwaysVisible,
)
Use case
It is possible to set the conditions under which the value indicator on a
Sliderwill be shown by settingshowValueIndicatorinSliderTheme. However,Slideritself is lacking theshowValueIndicatorproperty.When a user wants to override the
showValueIndicatorfor a specificSlider, they have to wrap it intoSliderThemeto achieve the desired behavior.Proposal
Add
Slider.showValueIndicatorproperty to allow user to set the conditions under which the value indicator will be shown for a specificSlider.