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

Flutter 2.5 Web AlertDialog + numberpicker #126

Open
nwnwnwnwnw opened this issue Sep 16, 2021 · 4 comments
Open

Flutter 2.5 Web AlertDialog + numberpicker #126

nwnwnwnwnw opened this issue Sep 16, 2021 · 4 comments

Comments

@nwnwnwnwnw
Copy link

Flutter 2.5 Web
the numberpicker's scroll in AlertDialog is not working any more

@anh-ht
Copy link

anh-ht commented Nov 8, 2021

same issues :(.

@Muhammad-Hammad
Copy link

Muhammad-Hammad commented Nov 11, 2021

Any fix regarding this?
its showing value in onchange but doesn't update state variables.

@deepak786
Copy link

wrap the NumberPicker with ScrollConfiguration and provide the behavior property.
By default Scroll View mouse drag gesture is disabled in Flutter.

https://docs.flutter.dev/release/breaking-changes/default-scroll-behavior-drag

ScrollConfiguration(
  behavior: ScrollConfiguration.of(context).copyWith(dragDevices: {
    // enable touch and mouse gesture
    PointerDeviceKind.touch,
    PointerDeviceKind.mouse,
  }),
  child: NumberPicker(),
);

@darkwilly08
Copy link

Check this answer: https://stackoverflow.com/questions/69608373/flutter-numberpicker-in-alertdialog-doesnt-work-properly

The StateFulBuilder seems to fix the issue!

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

5 participants