Skip to content

运行web端报错 Type 'TapDragUpDetails' not found. #29

Open

Description

@oyanglun000

../../../../.pub-cache/hosted/pub.dev/flutter_math_fork-0.7.1/lib/src/widgets/selection/gesture_detector_builder_selectable.dart:38:22: Error: Type 'TapDragUpDetails' not found.
void onSingleTapUp(TapDragUpDetails details) {
^^^^^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/flex_color_scheme-7.1.2/lib/src/flex_color_scheme.dart:7788:20: Error: Type argument 'VisualDensity' doesn't conform to the bound 'Enum?' of the type variable 'T' on 'EnumProperty'.

  • 'VisualDensity' is from 'package:flutter/src/material/theme_data.dart' ('../../../../tool/flutter/packages/flutter/lib/src/material/theme_data.dart').
  • 'Enum' is from 'dart:core'.
    Try changing type arguments so that they conform to the bounds.
    properties.add(EnumProperty('visualDensity', visualDensity));
    ^
    ../../../../tool/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:2247:20: Context: This is the type variable whose bound isn't conformed to.
    class EnumProperty<T extends Enum?> extends DiagnosticsProperty {
    ^
    ../../../../.pub-cache/hosted/pub.dev/flex_color_scheme-7.1.2/lib/src/flex_sub_themes_data.dart:4139:20: Error: Type argument 'FlexAdaptive' doesn't conform to the bound 'Enum?' of the type variable 'T' on 'EnumProperty'.
  • 'FlexAdaptive' is from 'package:flex_color_scheme/src/flex_adaptive.dart' ('../../../../.pub-cache/hosted/pub.dev/flex_color_scheme-7.1.2/lib/src/flex_adaptive.dart').
  • 'Enum' is from 'dart:core'.
    Try changing type arguments so that they conform to the bounds.
    properties.add(EnumProperty(
    ^
    ../../../../tool/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:2247:20: Context: This is the type variable whose bound isn't conformed to.
    class EnumProperty<T extends Enum?> extends DiagnosticsProperty {
    ^
    ../../../../.pub-cache/hosted/pub.dev/flex_color_scheme-7.1.2/lib/src/flex_sub_themes_data.dart:4141:20: Error: Type argument 'FlexAdaptive' doesn't conform to the bound 'Enum?' of the type variable 'T' on 'EnumProperty'.
  • 'FlexAdaptive' is from 'package:flex_color_scheme/src/flex_adaptive.dart' ('../../../../.pub-cache/hosted/pub.dev/flex_color_scheme-7.1.2/lib/src/flex_adaptive.dart').
  • 'Enum' is from 'dart:core'.
    Try changing type arguments so that they conform to the bounds.
    properties.add(EnumProperty(
    ^
    ../../../../tool/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:2247:20: Context: This is the type variable whose bound isn't conformed to.
    class EnumProperty<T extends Enum?> extends DiagnosticsProperty {
    ^
    ../../../../.pub-cache/hosted/pub.dev/flex_color_scheme-7.1.2/lib/src/flex_sub_themes_data.dart:4143:20: Error: Type argument 'FlexAdaptive' doesn't conform to the bound 'Enum?' of the type variable 'T' on 'EnumProperty'.
  • 'FlexAdaptive' is from 'package:flex_color_scheme/src/flex_adaptive.dart' ('../../../../.pub-cache/hosted/pub.dev/flex_color_scheme-7.1.2/lib/src/flex_adaptive.dart').
  • 'Enum' is from 'dart:core'.
    Try changing type arguments so that they conform to the bounds.
    properties.add(EnumProperty(
    ^
    ../../../../tool/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:2247:20: Context: This is the type variable whose bound isn't conformed to.
    class EnumProperty<T extends Enum?> extends DiagnosticsProperty {
    ^
    ../../../../.pub-cache/hosted/pub.dev/flex_color_scheme-7.1.2/lib/src/flex_sub_themes_data.dart:4146:14: Error: Type argument 'FlexAdaptive' doesn't conform to the bound 'Enum?' of the type variable 'T' on 'EnumProperty'.
  • 'FlexAdaptive' is from 'package:flex_color_scheme/src/flex_adaptive.dart' ('../../../../.pub-cache/hosted/pub.dev/flex_color_scheme-7.1.2/lib/src/flex_adaptive.dart').
  • 'Enum' is from 'dart:core'.
    Try changing type arguments so that they conform to the bounds.
    .add(EnumProperty('adaptiveRadius', adaptiveRadius));
    ^
    ../../../../tool/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:2247:20: Context: This is the type variable whose bound isn't conformed to.
    class EnumProperty<T extends Enum?> extends DiagnosticsProperty {
    ^
    ../../../../.pub-cache/hosted/pub.dev/flex_color_scheme-7.1.2/lib/src/flex_sub_themes_data.dart:4461:20: Error: Type argument 'double' doesn't conform to the bound 'Enum?' of the type variable 'T' on 'EnumProperty'.
  • 'Enum' is from 'dart:core'.
    Try changing type arguments so that they conform to the bounds.
    properties.add(EnumProperty('bottomNavigationBarSelectedIconSize',
    ^
    ../../../../tool/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:2247:20: Context: This is the type variable whose bound isn't conformed to.
    class EnumProperty<T extends Enum?> extends DiagnosticsProperty {
    ^
    ../../../../.pub-cache/hosted/pub.dev/flex_color_scheme-7.1.2/lib/src/flex_sub_themes_data.dart:4463:20: Error: Type argument 'double' doesn't conform to the bound 'Enum?' of the type variable 'T' on 'EnumProperty'.
  • 'Enum' is from 'dart:core'.
    Try changing type arguments so that they conform to the bounds.
    properties.add(EnumProperty('bottomNavigationBarUnselectedIconSize',
    ^
    ../../../../tool/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:2247:20: Context: This is the type variable whose bound isn't conformed to.
    class EnumProperty<T extends Enum?> extends DiagnosticsProperty {
    ^
    ../../../../.pub-cache/hosted/pub.dev/flex_color_scheme-7.1.2/lib/src/flex_sub_themes_data.dart:4555:20: Error: Type argument 'double' doesn't conform to the bound 'Enum?' of the type variable 'T' on 'EnumProperty'.
  • 'Enum' is from 'dart:core'.
    Try changing type arguments so that they conform to the bounds.
    properties.add(EnumProperty(
    ^
    ../../../../tool/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:2247:20: Context: This is the type variable whose bound isn't conformed to.
    class EnumProperty<T extends Enum?> extends DiagnosticsProperty {
    ^
    ../../../../.pub-cache/hosted/pub.dev/flex_color_scheme-7.1.2/lib/src/flex_sub_themes_data.dart:4557:20: Error: Type argument 'double' doesn't conform to the bound 'Enum?' of the type variable 'T' on 'EnumProperty'.
  • 'Enum' is from 'dart:core'.
    Try changing type arguments so that they conform to the bounds.
    properties.add(EnumProperty(
    ^
    ../../../../tool/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:2247:20: Context: This is the type variable whose bound isn't conformed to.
    class EnumProperty<T extends Enum?> extends DiagnosticsProperty {
    ^
    ../../../../.pub-cache/hosted/pub.dev/get-4.6.5/lib/get_navigation/src/extension_navigation.dart:222:62: Error: The getter 'backgroundColor' isn't defined for the class 'ThemeData'.
  • 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('../../../../tool/flutter/packages/flutter/lib/src/material/theme_data.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'backgroundColor'.
    TextStyle(color: confirmTextColor ?? theme.backgroundColor),
    ^^^^^^^^^^^^^^^
    ../../../../.pub-cache/hosted/pub.dev/flutter_math_fork-0.7.1/lib/src/widgets/selection/gesture_detector_builder_selectable.dart:38:22: Error: 'TapDragUpDetails' isn't a type.
    void onSingleTapUp(TapDragUpDetails details) {
    ^^^^^^^^^^^^^^^^
    Unhandled exception:
    Unsupported operation: Unsupported invalid type InvalidType() (InvalidType). Encountered while compiling file:///Users/gougou/.pub-cache/hosted/pub.dev/flutter_math_fork-0.7.1/lib/src/widgets/selection/gesture_detector_builder_selectable.dart, which contains the type: FunctionType(void Function()).
    #0 ProgramCompiler._typeCompilationError (package:dev_compiler/src/kernel/compiler.dart:3236)
    总是超时怎么回事儿? #1 ProgramCompiler._emitType (package:dev_compiler/src/kernel/compiler.dart:3197)
    代码块颜色总是变来变去 #2 ProgramCompiler._emitClassSignature (package:dev_compiler/src/kernel/compiler.dart:1570)
    为什么stream 会在数据全部获取后 才会解析,不能一个一词 读取吗 #3 ProgramCompiler._emitClassDeclaration (package:dev_compiler/src/kernel/compiler.dart:962)
    [新功能建议]能否加入使用本地代理的功能 #4 ProgramCompiler._emitClass (package:dev_compiler/src/kernel/compiler.dart:819)
    【bug】输入光标总是左边 #5 List.forEach (dart:core-patch/growable_array.dart:416)
    修复:类型不正确导致的编译失败 #6 ProgramCompiler._emitLibrary (package:dev_compiler/src/kernel/compiler.dart:757)
    修复问题 #7 List.forEach (dart:core-patch/growable_array.dart:416)
    fix sqflite err on Platform.isWindows #8 ProgramCompiler.emitModule (package:dev_compiler/src/kernel/compiler.dart:486)
    安卓版本中gpt model的版本太少 #9 IncrementalJavaScriptBundler.compile (package:frontend_server/src/javascript_bundle.dart:223)
    fix CI #10 FrontendCompiler.writeJavaScriptBundle (package:frontend_server/frontend_server.dart:801)
#11 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:661) #12 listenAndCompile. (package:frontend_server/frontend_server.dart:1311) Finished with error: the Dart compiler exited unexpectedly. Failed to compile application.

Activity

  1. oyanglun000 commented on Aug 2, 2024

    @oyanglun000
    Author

    我现在web是跑起来了,但一直无法加载数据,点击设置按钮会报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions