dooboolab-community / flutter_calendar_carousel

Calendar widget for flutter that is swipeable horizontally. This widget can help you build your own calendar widget highly customizable.
MIT License
839 stars 306 forks source link

Property headerTextStyle not working #255

Closed Plowts closed 3 years ago

Plowts commented 3 years ago

Version of flutter_calendar_carousel

flutter_calendar_carousel: ^1.5.2

Expected behavior

Modify text style of week days in header (from orange to green for example) with property headerTextStyle. Example: headerTextStyle: TextStyle( color: Colors.green, ),

Actual behavior

Property not apply on rendering

flutter doctor result ( in terminal)

PS D:> flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 1.22.3, on Microsoft Windows [version 10.0.18363.1256], locale fr-FR)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [!] Android Studio (version 4.1.0) X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality. [!] IntelliJ IDEA Community Edition (version 2019.2) X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality. [√] VS Code (version 1.52.1) [√] Connected device (1 available)

Steps to reproduce the behavior

Modify headerTextStyle property with an another color.

TomTruyen commented 3 years ago

@Plowts

The weekDays don't use headerTextStyle. The headerTextStyleis used for the Month & Year that is displayed at the top of your calendar

To change the color of your weekdays you should use weekdayTextStyle

Example: weekdayTextStyle: TextStyle( color: Colors.green, ),