flutter_math_fork-0.3.3+1/lib/src/widgets/selectable.dart:407:7:错误:非抽象类'InternalSelectableMathState



C:\flutter\bin\flutter.bat——无颜色构建apk

没有健全零安全的建筑物有关更多信息,请参阅https://dart.dev/null-safety/unsound-null-safety

正在运行Gradle任务"assemblyRelease">
/C:/Users/Petra/AppData/Local/Pub/Cache/hosts/Pub.dartlang.org/flatter_math_fork-0.3.3+1/lib/src/widgets/selected.dart:407:7:错误:非抽象类"InternalSelectableMathState"缺少这些成员的实现:

  • TextInputClient.insertTextPlaceholder
  • 文本输入客户端.remove文本占位符
  • 文本选择Delegate.copy选择
  • 文本选择Delegate.cut选择
  • 文本选择Delegate.pasteText
  • 文本选择Delegate.selectAll试着
  • 提供一种实现方式
  • 从超类或mixin继承实现
  • 将类标记为抽象类,或者
  • 提供"noSuchMethod"实现

类InternalSelectableMathState扩展State^^^^^^^^^^^^^^^^^^^^^^^^^^^/C:/flutter/packages/flutter/lib/src/services/text_input.dart:1124:8:上下文:此处定义了"TextInputClient.insertTextPlaceholder"。void insertTextPlaceholder(大小){}^^^^^^^^^^^^^^^^^^^^^/C:/flutter/packages/flutter/lib/src/services/text_input.dart:1127:8:上下文:此处定义了"TextInputClient.removeTextPlaceholder"。void removeTextPlaceholder(){}^^^^^^^^^^^^^^^^^^^^^/C:/flutter/packages/flutter/lib/src/services/text_input.dart:1041:8:上下文:此处定义了"TextSelectionDelegate.copySelection"。void copySelection(SelectionChangedCause cause);^^^^^^^^^^^^^/C:/flutter/packages/flutter/lib/src/services/text_input.dart:1021:8:上下文:此处定义了"TextSelectionDelegate.cutSelection"。void cutSelection(SelectionChangedCause cause);^^^^^^^^^^^^/C:/flutter/packages/flutter/lib/src/services/text_input.dart:1029:16:上下文:此处定义了"TextSelectionDelegate.pastText"。Future pasteText(SelectionChangedCause cause);^^^^^^^^^/C:/flutter/packages/flutter/lib/src/services/text_input.dart:1035:8:此处定义了上下文:"TextSelectionDelegate.selectAll"。void selectAll(SelectionChangedCause cause);^^^^^^^^^/C:/Users/Petra/AppData/Local/Pub/Cache/hotes/Pub.dartlang.org/shared_value-1.1.1/lib/manager_widget.dart:26:警告:null感知操作的操作数"?"具有排除null的类型"SchedulerBinding"。

  • "SchedulerBinding"来自"package:flutter/src/scheller/binding.dart"("/C:/flutter/packages/flutter/lib/src/scheduler/binding.dart")。if(SchedulerBinding.instance?.schedulerPhase!=schedulerPhase.iidle){^/C:/Users/Petra/AppData/Local/Pub/Cache/hotes/Pub.dartlang.org/shared_value-1.1.1/lib/manager_widget.dart:30:30:警告:null感知操作的操作数"?"具有排除null的类型"SchedulerBinding">
  • "SchedulerBinding"来自"package:flutter/src/scheller/binding.dart"("/C:/flutter/packages/flutter/lib/src/scheduler/binding.dart")。等待SchedulerBinding.instance?。endOfFrame;^/C:/Users/Petra/AppData/Local/Pub/Cache/hotes/Pub.dartlang.org/dropdown_search-0.6.3/lib/dropdown_arch.dart:357:26:警告:null感知操作的操作数"!"具有排除null的类型"WidgetsBinding">
  • "WidgetsBinding"来自"package:flutter/src/widgets/binding.dart"("/C:/flutter/packages/flutter/lib/src/widgets/binding.dart")。小工具绑定实例!。addPostFrameCallback((_){^/C:/Users/Petra/AppData/Local/Pub/Cache/hotes/Pub.dartlang.org/provider-5.0.0/lib/src/inherited_provider.dart:391:26:警告:null感知操作的操作数"!"具有排除null的类型"SchedulerBinding">
  • "SchedulerBinding"来自"package:flutter/src/scheller/binding.dart"("/C:/flutter/packages/flutter/lib/src/scheduler/binding.dart")。SchedulerBinding.instance!。addPostFrameCallback((_){^/C:/Users/Petra/AppData/Local/Pub/Cache/hotes/Pub.dartlang.org/intl_phone_number_input-0.7.0+2/lib/src/widgets/input_widget.dart:31:20:警告:null感知操作的操作数"!"具有排除null的类型"WidgetsBinding">
  • "WidgetsBinding"来自"package:flutter/src/widgets/binding.dart"("/C:/flutter/packages/flutter/lib/src/widgets/binding.dart")。小工具绑定实例!。addPostFrameCallback((时间戳){^/C:/Users/Petra/AppData/Local/Pub/Cache/hotes/Pub.dartlang.org/flatter_auth_buttons-0.10.0/lib/src/button.dart:56:18:错误:没有为类"StretchableButton"定义方法"RaisedButton">
  • "StretchableButton"来自"package:fluft_auth_buttons/src/button.dart"("/C:/Users/Petra/AppData/Local/Pub/Cache/hotes/Pub.dartlang.org/fluft_auth_buttons-0.10.0/lib/src/button.dart)。请尝试将名称更正为现有方法的名称,或定义名为"RaisedButton"的方法。child:RaisedButton(^^^^^^^^^^^^/C:/Users/Petra/AppData/Local/Pub/Cache/hotes/Pub.dartlang.org/flatter_math_fork-0.3.3+1/lib/src/widgets/selective.dart:459:24:警告:null感知操作的操作数"!"具有排除null的类型"SchedulerBinding">
  • "SchedulerBinding"来自"package:flutter/src/scheller/binding.dart"("/C:/flutter/packages/flutter/lib/src/scheduler/binding.dart")。SchedulerBinding.instance!。addPostFrameCallback((_){^/C:/Users/Petra/AppData/Local/Pub/Cache/hotes/Pub.dartlang.org/flatter_math_fork-0.3.3+1/lib/src/widgets/selection/overlay_manager.dart:138:28:警告:null感知操作的操作数"!"具有排除null的类型"SchedulerBinding">
  • "SchedulerBinding"来自"package:flutter/src/scheller/binding.dart"("/C:/flutter/packages/flutter/lib/src/scheduler/binding.dart")。if(SchedulerBinding.instance!.schedulerPhase==^/C:/Users/Petra/AppData/Local/Pub/Cache/hotes/Pub.dartlang.org/flatter_math_fork-0.3.3+1/lib/src/widgets/selection/overlay_manager.dart:140:26:警告:null感知操作的操作数"!"具有排除null的类型"SchedulerBinding">
  • "SchedulerBinding"来自"package:flutter/src/scheller/binding.dart"("/C:/flutter/packages/flutter/lib/src/scheduler/binding.dart")。SchedulerBinding.instance!^/C:/Users/Petra/AppData/Local/Pub/Cache/hotes/Pub.dartlang.org/flatter_math_fork-0.3.3+1/lib/src/widgets/selection/web_selection_manager.dart:119:24:警告:空感知操作的操作数"!"具有排除null的类型"SchedulerBinding">
  • "SchedulerBinding"来自"package:flutter/src/scheller/binding.dart"("/C:/flutter/packages/flutter/lib/src/scheduler/binding.dart")。SchedulerBinding.instance!^/C:/Users/Petra/AppData/Local/Pub/Cache/hotes/Pub.dartlang.org/flatter_math_fork-0.3.3+1/lib/src/widgets/selection/overlay.dart:141:26:警告:null感知操作的操作数"!"具有排除null的类型"SchedulerBinding">
  • "SchedulerBinding"来自"package:flutter/src/scheller/binding.dart"("/C:/flutter/packages/flutter/lib/src/scheduler/binding.dart")。if(SchedulerBinding.instance!.schedulerPhase==^/C:/Users/Petra/AppData/Local/Pub/Cache/hotes/Pub.dartlang.org/flatter_math_fork-0.3.3+1/lib/src/widgets/selection/overlay.dart:143:24:警告:null感知操作的操作数"!"具有排除null的类型"SchedulerBinding">
  • "SchedulerBinding"来自"package:flutter/src/scheller/binding.dart"("/C:/flutter/packages/flutter/lib/src/scheduler/binding.dart")。SchedulerBinding.instance!。addPostFrameCallback(_markNeedsBuild);^/C:/Users/Petra/AppData/Local/Pub/Cache/hotes/Pub.dartlang.org/flatter_math_fork-0.3.3+1/lib/src/widgets/selection/overlay.dart:193:26:警告:null感知操作的操作数"!"具有排除null的类型"SchedulerBinding">
  • "SchedulerBinding"来自"package:flutter/src/scheller/binding.dart"("/C:/flutter/packages/flutter/lib/src/scheduler/binding.dart")。if(SchedulerBinding.instance!.schedulerPhase==^/C:/Users/Petra/AppData/Local/Pub/Cache/hotes/Pub.dartlang.org/flatter_math_fork-0.3.3+1/lib/src/widgets/selection/overlay.dart:195:24:警告:null感知操作的操作数"!"具有排除null的类型"SchedulerBinding">
  • "SchedulerBinding"来自"package:flutter/src/scheller/binding.dart"("/C:/flutter/packages/flutter/lib/src/scheduler/binding.dart")。SchedulerBinding.instance!。addPostFrameCallback(_markNeedsBuild);^

失败:生成失败,出现异常。

  • 其中:脚本"C:\flutter\packages\flutter_tools\gradle\flutter.gradle"行:1156

  • 哪里出了问题:任务":app:compileFlutterBuildRelease"的执行失败。

进程"命令"C:\flutter\bin\flutter.bat"以非零退出值1 完成

在我的案例中,该问题与依赖于flutter_math_fork-0.3.3+1flutter_html: 2.1.5有关。修复flutter_html to 3.0.0-alpha.2的版本(将来可能会有更新的版本)解决了我的问题。

相关内容

  • 没有找到相关文章

最新更新