MarcinusX/NumberPicker

Flutter 2.5 Web AlertDialog + numberpicker

nwnwnwnwnw opened this issue · 4 comments

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

same issues :(.

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

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(),
);