textStyle property

TextStyle? textStyle
final

The text style for the text in the SfDateRangePicker header view.

Defaults to null.

Using a SfDateRangePickerTheme gives more fine-grained control over the appearance of various components of the date range picker.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfDateRangePicker(
           controller: _pickerController,
           view: DateRangePickerView.month,
           selectionMode: DateRangePickerSelectionMode.single,
           headerStyle: DateRangePickerHeaderStyle(
             textStyle: TextStyle(
                 color: Colors.blue,
                 fontSize: 18,
                 fontWeight: FontWeight.w400),
           )),
     ),
   );
 }

Implementation

final TextStyle? textStyle;