flutter: Error: The non-abstract class 'RenderParagraphX' is missing implementations for these members, caused by sliding_up_panel-1.0.2
flutter: Error: The non-abstract class 'RenderParagraphX' is missing implementations for these members, caused by sliding_up_panel-1.0.2
自从我更新了 flutter,昨天,我收到以下错误消息:
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Running Xcode build...
Xcode build done. 23,5s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
../../.pub-cache/hosted/pub.dartlang.org/assorted_layout_widgets-1.3.4/lib/src/text_one_line.dart:207:7: Error: The non-abstract class 'RenderParagraphX' is missing implementations for these members:
- RenderParagraph.getFullHeightForCaret
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class RenderParagraphX extends RenderBox
^^^^^^^^^^^^^^^^
../../Applications/flutter%20env/flutter/flutter/packages/flutter/lib/src/rendering/paragraph.dart:750:11: Context: 'RenderParagraph.getFullHeightForCaret' is defined here.
double? getFullHeightForCaret(TextPosition position) {
^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/sliding_up_panel-1.0.2/lib/src/panel.dart:218:44: Error: Too few positional arguments: 1 required, 0 given.
VelocityTracker _vt = new VelocityTracker();
^
../../Applications/flutter%20env/flutter/flutter/packages/flutter/lib/src/gestures/velocity_tracker.dart:152:3: Context: Found this candidate, but the arguments don't match.
VelocityTracker(this.kind);
^^^^^^^^^^^^^^^
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
所以我假设 sliding_up_panel-1.0.2 与最新版本有一些问题。
除非我想依赖即将发布的 1.0.3,否则我想我唯一的机会就是回滚到以前的 flutter 版本,对吧(好吧,我也可以禁用所有相关功能)?
有没有比通过 shell 命令卸载并重新安装以前版本更简单的方法。上次我在一些配置文件上遇到了一些困难。目前我正在享受 IntelliJ IDEA 的整洁更新功能(此外,我正在使用 Mac)。
我可以再次构建 :-D
这就是我所做的,以防其他人遇到此问题:
- flutter 通道稳定
- flutter 升级
- 颤动干净
PS:之前,我删除了所有sliding_up_panel的痕迹,但仍然出现构建错误。现在一切正常,包括 sliding_up_panel
自从我更新了 flutter,昨天,我收到以下错误消息:
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Running Xcode build...
Xcode build done. 23,5s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
../../.pub-cache/hosted/pub.dartlang.org/assorted_layout_widgets-1.3.4/lib/src/text_one_line.dart:207:7: Error: The non-abstract class 'RenderParagraphX' is missing implementations for these members:
- RenderParagraph.getFullHeightForCaret
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class RenderParagraphX extends RenderBox
^^^^^^^^^^^^^^^^
../../Applications/flutter%20env/flutter/flutter/packages/flutter/lib/src/rendering/paragraph.dart:750:11: Context: 'RenderParagraph.getFullHeightForCaret' is defined here.
double? getFullHeightForCaret(TextPosition position) {
^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/sliding_up_panel-1.0.2/lib/src/panel.dart:218:44: Error: Too few positional arguments: 1 required, 0 given.
VelocityTracker _vt = new VelocityTracker();
^
../../Applications/flutter%20env/flutter/flutter/packages/flutter/lib/src/gestures/velocity_tracker.dart:152:3: Context: Found this candidate, but the arguments don't match.
VelocityTracker(this.kind);
^^^^^^^^^^^^^^^
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
所以我假设 sliding_up_panel-1.0.2 与最新版本有一些问题。
除非我想依赖即将发布的 1.0.3,否则我想我唯一的机会就是回滚到以前的 flutter 版本,对吧(好吧,我也可以禁用所有相关功能)?
有没有比通过 shell 命令卸载并重新安装以前版本更简单的方法。上次我在一些配置文件上遇到了一些困难。目前我正在享受 IntelliJ IDEA 的整洁更新功能(此外,我正在使用 Mac)。
我可以再次构建 :-D
这就是我所做的,以防其他人遇到此问题:
- flutter 通道稳定
- flutter 升级
- 颤动干净
PS:之前,我删除了所有sliding_up_panel的痕迹,但仍然出现构建错误。现在一切正常,包括 sliding_up_panel