Skip to content

Customize TextStyle of current day on day bar & the first day visible on WeekView - #41

Closed
hnvn wants to merge 2 commits into
Skyost:masterfrom
hnvn:master
Closed

hnvn wants to merge 2 commits into
Skyost:masterfrom
hnvn:master

Conversation

@hnvn

@hnvn hnvn commented Jun 29, 2020

Copy link
Copy Markdown
  • Customize TextStyle of current day on day bar: currently, if using dayBarTextStyle from WeekViewStyle, this value is fixed, not be able to configure according to date value, so we cannot highlight the current date on day bar. My solution is to use dayBarTextStyle of DayViewStyle if it is provided.

  • Support configure the first day visible on WeekView: currently, WeekView can only jump immediately to the current time (current day). I add new initialDateIndex in WeekView to configure the first day visible on WeekView.

hnvn added 2 commits June 26, 2020 17:06
Currently, if using `dayBarTextStyle` from `WeekViewStyle`, this value is fixed, not be able to configure according to date value, so we cannot highlight the current date in day bar.

My solution is to use `dayBarTextStyle` of `DayViewStyle` if it is provided.
add `initialDateIndex` to control the first date visible in WeekView
@hnvn

hnvn commented Jul 3, 2020

Copy link
Copy Markdown
Author

cc @Skyost

@Skyost

Skyost commented Jul 3, 2020

Copy link
Copy Markdown
Owner

Hey @hnvn, I'm not able to review it right now. I will be able next week I think.

@luistrivelatto

Copy link
Copy Markdown
Contributor

The second commit ("support customize dayBarTextStyle") has many changes which are only code reformatting, probably due to automatic reformatting. Could you remove those, please? That would make it easier to review the PR and keep the formatting more consistent across the code :)

Also, the pubspec.lock file should rather not be committed in library packages. Could you remove it please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants