Flutter 2.5 Web AlertDialog + numberpicker
nwnwnwnwnw opened this issue · 4 comments
nwnwnwnwnw commented
Flutter 2.5 Web
the numberpicker's scroll in AlertDialog is not working any more
anh-ht commented
same issues :(.
Muhammad-Hammad commented
Any fix regarding this?
its showing value in onchange but doesn't update state variables.
deepak786 commented
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 commented
Check this answer: https://stackoverflow.com/questions/69608373/flutter-numberpicker-in-alertdialog-doesnt-work-properly
The StateFulBuilder seems to fix the issue!