Chris1234567899 / flutter_time_range_picker

A time range picker for Flutter
Other
33 stars 52 forks source link

How can I customize the header? #39

Closed cywaaa closed 2 years ago

cywaaa commented 2 years ago

How can I customize the header in general? I want to customize the background color and text color of "from" and "to". I already tried changing the ThemeData.

image

Chris1234567899 commented 2 years ago

You have control over the background color through the primarySwatch variable of your theme data. Additionally, you can control text styles by the parameters: TextStyle? timeTextStyle TextStyle? activeTimeTextStyle

If that is not enough, you always have the option to create a custom dialog and use the widget within, setting hideTimes to true and implement your own header - see the custom dialog example.