JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.15k stars 1.17k forks source link

Android DatePicker implementation doesn't take into account YearRange #4423

Closed xavimolloy closed 7 months ago

xavimolloy commented 7 months ago

Describe the bug A clear and concise description of what the bug is.

Compose multiplatform datepicker does not respect allowed year range when consuming the android artifact form an android app.

It works as expected when testing it in the library but behaves differently when consuming it from an android app.

i've noticed that this also happens with things like colors and paddings, sometimes it works fine from the multiplatform project library, but behaves differently when consuming the actual component.

Affected platforms

Versions

To Reproduce Steps and/or the code snippet to reproduce the behavior:

create a custom Datepicker for a Multiplatform library that allows you to pass the year range as a parameter consume the component from an android device Observe that the allowed year range is not detected and goes to default

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

igordmn commented 7 months ago

Please, create the issue in the Jetpack Compose tracker: https://issuetracker.google.com/issues/new?component=612128. The Android target is maintained there. Also, better to describe the issue there in more detail, with a code snippet, steps, actual and expected behaviour.

okushnikov commented 3 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.