【发布时间】:2021-09-02 06:13:15
【问题描述】:
我今天开始了一个项目,我想用flutter + dart做一个表单,并且看到velocity_x在前面看起来很有趣,所以我将它的最后一个版本添加到我在VSC中的pubspec.yaml并'flutter pub get'它。
然后我将它导入我的飞镖代码并开始运行它。
结束了这个错误,我刚刚开始飞镖所以真的不知道如何解决它。
[错误:../../../../../../Documents/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/velocity_x-3.2.0/lib /src/flutter/animated/animator.dart:119:9:错误:找不到类型“TickerMixin”。 最终的 TickerMixin? tickerMixin;
../../../../../../Documents/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/velocity_x-3.2.0/lib/src/ flutter/animated/animator.dart:119:9: 错误:'TickerMixin' 不是类型。 最终的 TickerMixin? tickerMixin;
../../../../../../Documents/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/velocity_x-3.2.0/lib/src/ flutter/animated/animator.dart:174:7:错误:没有名为“tickerMixin”的命名参数。 tickerMixin:tickerMixin,
../../../../../../Documents/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/animator-3.1.0/lib/src/ animator.dart:18:3: 上下文:找到这个候选人,但参数不匹配。 动画师({
]1
编辑:我很笨:https://github.com/iampawan/VelocityX/issues/109
“在 pubspec.yaml 中添加以下行现在应该可以修复它。我将在下次更新时修复它。
dependency_overrides: 动画师:3.0.0" iampawan
【问题讨论】:
-
我认为您应该将问题提交给 VelocityX 存储库。 github.com/cncf/velocity/issues