data property

Specifies the color and typography values for descendant chart widgets.

Widget build(BuildContext context) {
 return Scaffold(
    body: SfDateRangePickerTheme(
      data: SfDateRangePickerThemeData(
        backgroundColor: Colors.grey,
        brightness: Brightness.dark,
      ),
      child: SfDateRangePicker()
    ),
  );
}

Implementation

final SfDateRangePickerThemeData data;