[Solved] Flutter package deprecation issue

researchthinker

To resolve Flutter Package deprecation issue, while making build follow below steps :

Example: In this case this type of error occur , similarly in your case may be same or different packages create issues, to resolve this issue follow these steps

../../../.pub-cache/hosted/pub.dev/hashtager-1.0.4/lib/widgets/hashtag_text_field.dart:88:35: Error: The parameter ‘details’ of the method ‘_TextFieldSelectionGestureDetectorBuilder.onSingleTapUp’ has type ‘TapUpDetails’, which does not match the corresponding type, ‘TapDragUpDetails’, in the overridden method, ‘TextSelectionGestureDetectorBuilder.onSingleTapUp’.

Step 1: First clean the flutter application in android or iOS

      flutter clean cache 
      flutter clean

Step2 : Now Run pub get

     flutter pub get 
     pod install #for iOS

Step 3: Find the exact path of file where issue occurred:

       ../../../.pub-cache/hosted/pub.dev/hashtager-     1.0.4/lib/widgets/hashtag_text_field.dart:88:35:

Step 4: Enter Ctrl +Shift+ F in window | Cmd +Shift
+ Enter

      Search >>> "hashtag_text_field". in Directory or Import File

Step 5: Once you reached the exact library location then search TapUpDetails

Step 6: Replace TapUpDetails with TapDragUpDetails.

Step 7: Now, you can make build android /iOS

Note: If you clean Flutter application you need to to follow these steps again. If you are still facing the issue please comment with issue details

Leave a Reply

Your email address will not be published. Required fields are marked *

web_horizontal
About Us ♢ Disclaimer ♢ Privacy Policy ♢ Terms & Conditions ♢ Contact Us

Copyright © 2023 ResearchThinker.com. All rights reserved.