Error: The argument type 'PointerEvent' can't be assigned to the parameter type 'PointerDownEvent'.
Opened this issue · 2 comments
pishguy commented
Error:
../../../../develop/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_colorpicker-0.4.0/lib/src/hsv_picker.dart:731:29: Error: The argument type 'PointerEvent' can't be assigned to the parameter type 'PointerDownEvent'.
- 'PointerEvent' is from 'package:flutter/src/gestures/events.dart' ('../../../../develop/flutter/packages/flutter/lib/src/gestures/events.dart').
- 'PointerDownEvent' is from 'package:flutter/src/gestures/events.dart' ('../../../../develop/flutter/packages/flutter/lib/src/gestures/events.dart').
super.addAllowedPointer(event);
^
../../../../develop/flutter/.pub-cache/hosted/pub.dartlang.org/animated_interpolation-0.3.2/lib/smart_tabbar.dart:701:40: Error: The getter 'body2' isn't defined for the class 'TextTheme'.
- 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../../develop/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body2'.
themeData.primaryTextTheme.body2)
^^^^^
../../../../develop/flutter/.pub-cache/hosted/pub.dartlang.org/animated_interpolation-0.3.2/lib/smart_tabbar.dart:706:40: Error: The getter 'body2' isn't defined for the class 'TextTheme'.
- 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../../develop/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body2'.
themeData.primaryTextTheme.body2)
^^^^^
../../../../develop/flutter/.pub-cache/hosted/pub.dartlang.org/animated_interpolation-0.3.2/lib/smart_tabbar.dart:714:36: Error: The getter 'body2' isn't defined for the class 'TextTheme'.
- 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../../develop/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body2'.
themeData.primaryTextTheme.body2.color;
^^^^^
flutter doctor -v
[✓] Flutter (Channel stable, 2.5.2, on Mac OS X 10.15.7 19H1323 darwin-x64, locale en)
• Flutter version 2.5.2 at /Users/cccccccc/Desktop/develop/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 3595343e20 (3 weeks ago), 2021-09-30 12:58:18 -0700
• Engine revision 6ac856380f
• Dart version 2.14.3
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/ccccc/Desktop/develop/sdk
• Platform android-31, build-tools 31.0.0
• ANDROID_HOME = /Users/ccccc/Desktop/develop/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.2
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[!] Android Studio
• Android Studio at /Applications/Android Studio Preview.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
✗ Unable to find bundled Java version.
• Try updating or re-installing Android Studio.
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.60.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.26.0
[✓] Connected device (1 available)
• WAS LX1A (mobile) • 2XJDU17C14006203 • android-arm64 • Android 8.0.0 (API 26)
DKAC commented
this seems to be an incompatibility with flutter 2.5... try flutter 2.2.3
jackeychina commented
I have resolved it. You can download it from here - https://drive.google.com/file/d/1DV1OsriI0su3Is13j65NpOpabRlOhDTZ/view?usp=sharing
Now it will work with flutter 2.5
Enjoy :)