Skip to content

feat: Add initial date parameter to CalendarDatePickerState #113

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

Merged
merged 1 commit into from
Jun 14, 2025

Conversation

Sanlorng
Copy link
Collaborator

A new optional parameter to the CalendarDatePickerState constructor. Users can now specify an initial instant (of type kotlinx.datetime.Instant) and timeZone (of type kotlinx.datetime.TimeZone) to set the starting date of the calendar.

If no values are provided, the calendar will default to the current system time and time zone, maintaining the previous behavior.
close #112

@Sanlorng Sanlorng changed the base branch from change-group to dev June 5, 2025 05:29
This commit introduces a new optional parameter to the `CalendarDatePickerState` constructor. Users can now specify an initial `instant` (of type `kotlinx.datetime.Instant`) and `timeZone` (of type `kotlinx.datetime.TimeZone`) to set the starting date of the calendar.

If no values are provided, the calendar will default to the current system time and time zone, maintaining the previous behavior.
@Sanlorng Sanlorng force-pushed the calendar_state_constructor branch from 373b4c9 to 3a6f6b3 Compare June 6, 2025 12:31
@Konyaco Konyaco merged commit a35295c into dev Jun 14, 2025
@Konyaco Konyaco deleted the calendar_state_constructor branch June 14, 2025 13:31
@JasminViebrock
Copy link

JasminViebrock commented Jun 20, 2025

Hi,

I just saw it – really cool!

Thank you so much for your time and effort :)

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