Strange gap between second and third element in WeekCalendar. Also not all containers are same size when aspectRatio(1f).
First two are a bit bigger than the others.
To Reproduce (if applicable)
Steps to reproduce the behavior:
1, Run in preview mode or run app
Expected behavior (if applicable)
No gap, same size
Screenshots? (if applicable)
Additional information
Code used:
val state = rememberWeekCalendarState(
startDate = startWeek,
endDate = endWeek,
firstVisibleWeekDate = LocalDate.now(),
firstDayOfWeek = DayOfWeek.MONDAY
)
val visibleWeek = rememberFirstVisibleWeekAfterScroll(state = state)
Text(text = getWeekPageTitle(visibleWeek))
WeekCalendar(
state = state,
dayContent = { Day(it, {}) },
)
Text("123")
@Composable
fun Day(day: WeekDay, onClick: (CalendarDay) -> Unit) {
Box(
modifier = Modifier.aspectRatio(1f).background(Color.Green),
contentAlignment = Alignment.Center
) { // Change the color of in-dates and out-dates, you can also hide them completely!
Text(
text = day.date.dayOfMonth.toString(),
)
}
}
Library information:
Describe the bug**
Strange gap between second and third element in WeekCalendar. Also not all containers are same size when aspectRatio(1f). First two are a bit bigger than the others.
To Reproduce (if applicable)
Steps to reproduce the behavior: 1, Run in preview mode or run app
Expected behavior (if applicable)
No gap, same size
Screenshots? (if applicable)
Additional information
Code used: