data property

Specifies the color and typography values for descendant range selector widgets.

This snippet shows how to set value to the data property in SfRangeSelectorTheme and SfRangeSliderTheme.

SfRangeValues _initialValues = SfRangeValues(4.0, 7.0);

Scaffold(
  body: Center(
      child: SfRangeSelectorTheme(
          data: SfRangeSliderThemeData(
              trackHeight: 3,
          ),
          child:  SfRangeSelector(
              min: 2.0,
              max: 10.0,
              initialValues: _initialValues,
              interval: 2,
              showTicks: true,
              showLabels: true,
              child: Container(
                  height: 200,
                  color: Colors.green[100],
              ),
          )
      ),
   )
)

Implementation

final SfRangeSelectorThemeData data;