Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change headings colors #1

Open
Daneel87 opened this issue Sep 22, 2022 · 3 comments
Open

Change headings colors #1

Daneel87 opened this issue Sep 22, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@Daneel87
Copy link

I'd like to have an option to change styling for headings

@chaudharydeepanshu chaudharydeepanshu added the enhancement New feature or request label Sep 22, 2022
@chaudharydeepanshu
Copy link
Owner

Nice suggestion. As soon as I have an update, I'll let you know. I'll be working on it.

Thank you.

@chaudharydeepanshu
Copy link
Owner

I have updated the package to support Weekday's customizations. More customizations for months, calendar controllers, and different styles for headers will also be added soon.

You can use the weekdays customization like this:-

  weekdaysProperties: WeekdaysProperties(
                generalWeekdaysDecoration:
                    WeekdaysDecoration(weekdayTextColor: Colors.red),
                sundayDecoration: WeekdaysDecoration(
                    weekdayTextColor: Colors.green,
                    weekdayTextStyle:
                        Theme.of(context).textTheme.headlineMedium),
                saturdayDecoration: WeekdaysDecoration(
                    weekdayTextColor: Colors.green,
                    weekdayTextStyle:
                        Theme.of(context).textTheme.headlineMedium),
),

Also, keep in mind that this update contains a few breaking changes(see changelog) which can be easily tackled.

If you have any queries then let me know.
Thank you.

@chaudharydeepanshu
Copy link
Owner

Added headerProperties for changing properties of the header section in version 1.1.0.

This includes customization of the month and year colour and text style, and customization for the navigator buttons icon.

CleanCalendar(
headerProperties: HeaderProperties(
monthYearDecoration: MonthYearDecoration(
monthYearTextColor: Colors.amber,
monthYearTextStyle: Theme.of(context).textTheme.labelMedium,
),
navigatorDecoration: NavigatorDecoration(
navigatorResetButtonIcon: const Icon(
Icons.restart_alt,
color: Colors.amber,
),
navigateLeftButtonIcon: const Icon(
Icons.arrow_circle_left,
color: Colors.amber,
),
navigateRightButtonIcon: const Icon(
Icons.arrow_circle_right,
color: Colors.amber,
),
),
),
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants