Skip to content
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

Headline and Icon of AdaptiveDatePicker Android aren't centered #209

Open
vanniktech opened this issue Dec 11, 2024 · 0 comments
Open

Headline and Icon of AdaptiveDatePicker Android aren't centered #209

vanniktech opened this issue Dec 11, 2024 · 0 comments

Comments

@vanniktech
Copy link

Using the following:

  AdaptiveDatePicker(
    modifier = Modifier,
    state = state,
    headline = {
      Text(title)
    },
    colors = DatePickerDefaults.colors().copy(
      containerColor = MaterialTheme.colorScheme.background,
    ),
  )

I get:

Screenshot 2024-12-11 at 12 37 04

You can see however that the headline and the icon aren't aligned vertically. They should be. I think the problem is the icon since it looks like it's missing some top margin. It's way too close to the top (green) than to the bottom (divider):

Screenshot 2024-12-11 at 12 38 06
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

No branches or pull requests

1 participant