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

Dynamically Set the picker as not editable #131

Open
murad-alm opened this issue May 14, 2022 · 1 comment
Open

Dynamically Set the picker as not editable #131

murad-alm opened this issue May 14, 2022 · 1 comment

Comments

@murad-alm
Copy link

murad-alm commented May 14, 2022

Hi there,
thanks for the awesome package!

Is there any way to dynamically disable the scrolling or set the picker as not-editable? Thanks!

Edit: typo

@murad-alm murad-alm changed the title Setting the picker not-/editable Dynamically Set the picker as not editable May 16, 2022
@crimsoncor
Copy link

This is very old, but you can just wrap the picker in other classes to handle the focus. I wrapped nested it like
InkWell(IgnorePointer(NumberPicker())) where the InkWell has an 'onTap' handler that updates a State boolean that controls the ignoring property in the IgnorePointer. That way, the NumberPicker is only active when you tap it.

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