salim-lachdhaf / dropdown_search

Simple and robust Dropdown with item search feature, making it possible to use an offline item list or filtering URL for easy customization.
MIT License
346 stars 334 forks source link

Build Faild #696

Closed Amr-Samy closed 1 month ago

Amr-Samy commented 1 month ago

When I add the package and try to run the app I get these errors :

/C:/Users/User/AppData/Local/Pub/Cache/hosted/pub.dev/dropdown_search-6.0.1/lib/src/widgets/custom_scroll_view.dart:21:7: Error: No named parameter with the name 'hitTestBehavior'.
      hitTestBehavior: scrollProps.hitTestBehavior,
      ^^^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/widgets/single_child_scroll_view.dart:143:9: Context: Found this candidate, but the arguments don't match.
  const SingleChildScrollView({
        ^^^^^^^^^^^^^^^^^^^^^
/C:/Users/Amr/AppData/Local/Pub/Cache/hosted/pub.dev/dropdown_search-6.0.1/lib/src/widgets/dropdown_search_popup.dart:191:33: Error: No named parameter with the name 'hitTestBehavior'.
                                hitTestBehavior: widget
                                ^^^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/widgets/scroll_view.dart:1298:3: Context: Found this candidate, but the arguments don't match.
  ListView.builder({
  ^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception

Desktop (please complete the following information):

salim-lachdhaf commented 1 month ago

Just update your flutter SDK version