brightness property
Specifies the light and dark theme for the SfSlider
,
SfRangeSlider
, and SfRangeSelector
.
This theme applies to all the SfSlider
which are
added as children of SfSliderTheme.
This theme applies to all the SfRangeSlider
which are
added as children of SfRangeSliderTheme.
This theme applies to all the SfRangeSelector
which are
added as children of SfRangeSelectorTheme.
This snippet shows how to set brightness in SfRangeSliderThemeData.
SfRangeValues _values = SfRangeValues(4.0, 7.0);
Scaffold(
body: Center(
child: SfRangeSliderTheme(
data: SfRangeSliderThemeData(
brightness: Brightness.dark,
),
child: SfRangeSlider(
min: 2.0,
max: 10.0,
values: _values,
interval: 2,
showTicks: true,
showLabels: true,
onChanged: (SfRangeValues newValues){
setState(() {
_values = newValues;
});
},
)
),
)
)
Implementation
final Brightness brightness;