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

reflect click event of checkbox on search filter #859

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

ked4ma
Copy link
Contributor

@ked4ma ked4ma commented Oct 6, 2022

Issue

Overview (Required)

  • On search filter, click event of checkboxes weren't dealt
  • enable to toggle filters by also tapping checkboxes themselves
  • I noticed that Day Filter has same issue, so I modified both filters (day/category)

Links

Screenshot

Before After
device-2022-10-06-183403.mp4
device-2022-10-06-182141.mp4
device-2022-10-06-183429.mp4
device-2022-10-06-182609.mp4

onCheckedChange = {},
onCheckedChange = null,
modifier = Modifier
.size(LocalViewConfiguration.current.minimumTouchTargetSize),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When onCheckedChange is null, Checkbox will not be padded. (ref: link)
So this will be displayed as following.
Screen Shot 2022-10-06 at 18 27 22

And Modifier.minimumTouchTargetSize() is a internal function of material3.
Because of this, I add Modifier and set size by using same size parameter (ref: link)

@ked4ma ked4ma marked this pull request as ready for review October 6, 2022 09:51
@github-actions github-actions bot temporarily deployed to deploygate-distribution October 6, 2022 10:23 Inactive
@takahirom
Copy link
Member

👀

onCheckedChange = {},
onCheckedChange = null,
modifier = Modifier
.size(LocalViewConfiguration.current.minimumTouchTargetSize),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know about LocalViewConfiguration! Thanks

@takahirom takahirom merged commit 4396c27 into DroidKaigi:main Oct 6, 2022
@ked4ma ked4ma deleted the checkbox-on-search-filter branch October 6, 2022 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Category check mark not checked during session search
2 participants