textAlign property

TextAlign textAlign
final

How the text should be aligned horizontally in SfDateRangePicker header view.

Defaults to TextAlign.left.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfDateRangePicker(
           controller: _pickerController,
           view: DateRangePickerView.month,
           selectionMode: DateRangePickerSelectionMode.single,
           headerStyle: DateRangePickerHeaderStyle(
             textAlign: TextAlign.right,
           )),
     ),
   );
 }

Implementation

final TextAlign textAlign;