Arunkumarm
11/22/2024, 5:37 AMrememberSelectableWeekCalendarState
from io.github.boguszpawlowski.composecalendar
like this:
val weekCalendarState = rememberSelectableWeekCalendarState(
initialSelection = listOf(selectedDate),
)
The app crashes when restoring the state with the following code:
restore = { restoreMap ->
WeekState(
initialWeek = Week(firstDay = LocalDate.parse(restoreMap[CurrentWeekKey] as String)),
minWeek = Week(firstDay = LocalDate.parse(restoreMap[MinWeekKey] as String)),
maxWeek = Week(firstDay = LocalDate.parse(restoreMap[MaxWeekKey] as String)),
)
}
I think the issue might be with how the data is restored or parsed. Has anyone experienced this or knows how to fix it?Luis Montes
11/26/2024, 6:34 PM