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

Disable dragging condition #50

Open
YDA93 opened this issue May 25, 2023 · 1 comment
Open

Disable dragging condition #50

YDA93 opened this issue May 25, 2023 · 1 comment

Comments

@YDA93
Copy link

YDA93 commented May 25, 2023

Im creating a opening hours for a store where users expected to list their Working Hours on days of week.

The problem is i want to disable the user from creating times like 10 PM to 3 AM because the user shouldn't pass 24 hours.

The user should select their time within 24 hours of a day but should not pass to the next day like example i mentioned.

@Jonny1987
Copy link

I did this by adding a 1 min disabled interval. I also forked this repo to block the sliders from passing through the disabled interval: https://github.com/Jonny1987/flutter_time_range_picker

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

2 participants