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

编译运行报错,是依赖问题吗? #129

Open
JackLeeMing opened this issue Dec 29, 2024 · 3 comments
Open

编译运行报错,是依赖问题吗? #129

JackLeeMing opened this issue Dec 29, 2024 · 3 comments

Comments

@JackLeeMing
Copy link

Package file_picker:linux references file_picker:linux as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: linux: default_package: file_picker or add an inline implementation to file_picker via platforms: linux: pluginClass or dartPluginClass.

Package file_picker:macos references file_picker:macos as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: macos: default_package: file_picker or add an inline implementation to file_picker via platforms: macos: pluginClass or dartPluginClass.

Package file_picker:windows references file_picker:windows as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: windows: default_package: file_picker or add an inline implementation to file_picker via platforms: windows: pluginClass or dartPluginClass.

Warning: In index.html:35: Local variable for "serviceWorkerVersion" is deprecated. Use "{{flutter_service_worker_version}}" template token instead. See https://docs.flutter.dev/platform-integration/web/initialization for more details.
Warning: In index.html:52: "FlutterLoader.loadEntrypoint" is deprecated. Use "FlutterLoader.load" instead. See https://docs.flutter.dev/platform-integration/web/initialization for more details.
../../../.pub-cache/hosted/pub.dev/flutter_slidable-3.1.1/lib/src/notifications_old.dart:88:23: Error: The method 'hashValues' isn't defined for the class 'SlidableRatioNotification'.

  • 'SlidableRatioNotification' is from 'package:flutter_slidable/src/notifications_old.dart' ('../../../.pub-cache/hosted/pub.dev/flutter_slidable-3.1.1/lib/src/notifications_old.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'hashValues'.
    int get hashCode => hashValues(tag, ratio);
    ^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dev/flutter_sticky_header-0.6.5/lib/src/widgets/sliver_sticky_header.dart:133:12: Error: The method 'hashValues' isn't defined for the class 'SliverStickyHeaderState'.
  • 'SliverStickyHeaderState' is from 'package:flutter_sticky_header/src/widgets/sliver_sticky_header.dart' ('../../../.pub-cache/hosted/pub.dev/flutter_sticky_header-0.6.5/lib/src/widgets/sliver_sticky_header.dart').
@JackLeeMing
Copy link
Author

Flutter 3.27.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 17025dd882 (13 days ago) • 2024-12-17 03:23:09 +0900
Engine • revision cb4b5fff73
Tools • Dart 3.6.0 • DevTools 2.40.2

@plm-lee
Copy link

plm-lee commented Jan 2, 2025

我也遇到了相同的问题,有解决办法吗

@JackLeeMing
Copy link
Author

我也遇到了相同的问题,有解决办法吗

试试 3.24.x 我在 3.24.5 版本下面勉强能跑起来

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

2 participants