Tkko / Flutter_Pinput

Flutter package to create Pin code input text field with every pixel customization possibility 🎨 with beautiful animations, iOS autofill, Android autofill
https://pub.dev/packages/pinput
MIT License
700 stars 172 forks source link

Compiling problems with Flutter 3.10 #135

Closed fsoft72 closed 1 year ago

fsoft72 commented 1 year ago

After upgrading to Flutter 3.10, I am not able to compile my app anymore. I have the following error:

Error: The parameter 'details' of the method '_PinputSelectionGestureDetectorBuilder.onDoubleTapDown' has type 'TapDownDetails', which does not match the corresponding type, 'TapDragDownDetails', in the overridden method, 'TextSelectionGestureDetectorBuilder.onDoubleTapDown'.
_pinput_selection_gesture_detector_builder.dart:20
- 'TapDownDetails' is from 'package:flutter/src/gestures/tap.dart' ('../../../data/opt/flutter/packages/flutter/lib/src/gestures/tap.dart').
tap.dart:1
- 'TapDragDownDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('../../../data/opt/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart').
tap_and_drag_gestures.dart:1
Change to a supertype of 'TapDragDownDetails', or, for a covariant parameter, a subtype.
  void onDoubleTapDown(TapDownDetails details) {

My Flutter version:

Flutter 3.10.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 84a1e904f4 (3 days ago) • 2023-05-09 07:41:44 -0700
Engine • revision d44b5a94c9
Tools • Dart 3.0.0 • DevTools 2.23.1
Dart SDK version: 3.0.0 (stable) (Thu May 4 01:11:00 2023 -0700) on "linux_x64"
Tkko commented 1 year ago

What's the package version you are using?

fsoft72 commented 1 year ago

I am using 2.2.23

Tkko commented 1 year ago

Update it to latest if possible.

qcodelabsllc commented 1 year ago

I have same issue. Also running on the latest dart & flutter versions (3.10.0). I am using version 2.2.31 as specified on pub.dev

qcodelabsllc commented 1 year ago

I even downgraded back to Flutter 3.7.12 yet after cleaning the project and even recreating an empty project with only pinput as a dependency it still fails with the same error

Tkko commented 1 year ago

Update to Flutter 3.10.0, Pinput to 2.2.31 and run flutter pub cache repair && flutter clean && flutter pub get

AliKarimiENT commented 1 year ago

Thanks @Tkko it worked fine

fsoft72 commented 1 year ago

@Tkko the latest version works for me with Flutter 3.10

qcodelabsllc commented 1 year ago

Works for me too. Thanks

Tkko commented 1 year ago

Closing for now, feel free to reopen if anyone still has the same issue