AbdullahChauhan / custom-dropdown

Custom dropdown widget allows to add highly customizable dropdown widget in your projects. Features includes Search on list data, Network search, Multi-selection and many more.
https://pub.dev/packages/animated_custom_dropdown
BSD 3-Clause "New" or "Revised" License
158 stars 73 forks source link

error: disallowIndicator() method does not exists #2

Closed devmuaz closed 2 years ago

devmuaz commented 2 years ago

Error found in dropdown_overlay.dart file, line 159

Error: The method 'disallowIndicator' isn't defined for the class 'OverscrollIndicatorNotification'.
Try correcting the name to the name of an existing method, or defining a method named 'disallowIndicator'.notification.disallowIndicator();

Solution: I believe replacing the disallowIndicator() with disallowGlow() solves the problem!

AbdullahChauhan commented 2 years ago

Error found in dropdown_overlay.dart file, line 159

Error: The method 'disallowIndicator' isn't defined for the class 'OverscrollIndicatorNotification'.
Try correcting the name to the name of an existing method, or defining a method named 'disallowIndicator'.notification.disallowIndicator();

Solution: I believe replacing the disallowIndicator() with disallowGlow() solves the problem!

@devmuaz The latest release is built on Flutter version 2.8 where disallowGlow() was deprecated in favor of disallowIndicator().

devmuaz commented 2 years ago

@AbdullahChauhan well, that's seems to be correct since im still using v2.5.1 due to some crashing issues related to v2.8!

Thanks 😄