Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in Flutter SDK 3.10 #55

Closed
sarmiladhandapani opened this issue May 12, 2023 · 8 comments
Closed

Issue in Flutter SDK 3.10 #55

sarmiladhandapani opened this issue May 12, 2023 · 8 comments

Comments

@sarmiladhandapani
Copy link

../../.pub-cache/hosted/pub.dev/macos_ui-1.12.2/lib/src/fields/text_field.dart:108: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'.

  • 'TapUpDetails' is from 'package:flutter/src/gestures/tap.dart' ('../../Development/flutter/packages/flutter/lib/src/gestures/tap.dart').
  • 'TapDragUpDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('../../Development/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart').
    Change to a supertype of 'TapDragUpDetails', or, for a covariant parameter, a subtype.
    void onSingleTapUp(TapUpDetails details) {
@rwbr
Copy link
Owner

rwbr commented May 12, 2023

Well, could you please add more information so that I understand in which way your problem is related to this project?

@LZaruba
Copy link

LZaruba commented May 23, 2023

Hey,

I'm facing the same error. Minimal reproducible code is to take the autogenerated default flutter app and add the calendar as shown in the example. Once one tries to start the app, it fails with the message above.

Please let me know if there is anything that I can provide to support solving this issue.

Thanks a lot!
Have a great day


UPDATE:
To reproduce, just checkout this repo and try to run the example app with flutter 3.10.x

@LZaruba
Copy link

LZaruba commented May 24, 2023

I was able to make it work using the workaround from this macos_ui package issue macosui/macos_ui#424 (comment)

TL;DR
Add the following to your pubspec.yaml

dependency_overrides:
  macos_ui:
    git:
      url: https://github.com/Mayb3Nots/macos_ui.git
      ref: dev

The problem itself is in the macos_ui library not being compatible. Once the version 2.x is out, this project should bump it and all is goood.

@jiangzongyu
Copy link

any news?

@m-gug
Copy link
Contributor

m-gug commented Jun 22, 2023

Hi!
@rwbr any chance to get rid of the macos_ui dependency? Due to the developer's personal difficulties, there seems to be little progress on the issue (macosui/macos_ui#423). Tragic and completely understandable, but unfortunately the error is preventing us from upgrading Flutter and thus also from upgrading many other packages.

@yichaosun
Copy link

UPDATE:
To reproduce, just checkout this repo and try to run the example app with flutter 3.10.x

@rwbr
Copy link
Owner

rwbr commented Aug 3, 2023

I'll check that asap

@rwbr
Copy link
Owner

rwbr commented Aug 6, 2024

With Flutter 3.22.3 I don't get any problem like this.

@rwbr rwbr closed this as completed Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants