Skip to content

web 版本报错 #30

@kysean

Description

@kysean

mac mini M2 Pro 2023
mac ox 13.4
运行 demo 报错:

Waiting for connection from debug service on Chrome...
Warning: In index.html:79: 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.
../../.pub-cache/hosted/pub.dev/extended_text-13.1.0/lib/src/extended/text_overflow_mixin.dart:882:31: Error: The method 'TextOverflowMixin.layoutInlineChildren' has fewer positional arguments than those of overridden method 'RenderBox with ContainerRenderObjectMixin, RenderInlineChildrenContainerDefaults.layoutInlineChildren'.
  List<PlaceholderDimensions> layoutInlineChildren(
                              ^
../../.pub-cache/hosted/pub.dev/extended_text-13.1.0/lib/src/official/rendering/paragraph.dart:12:7: Context: This is the overridden method ('layoutInlineChildren').
class _RenderParagraph extends RenderBox
      ^
../../.pub-cache/hosted/pub.dev/extended_text-13.1.0/lib/src/extended/rendering/paragraph.dart:31:7: Error: Applying the mixin 'TextOverflowMixin' to '_RenderParagraph' introduces an erroneous override of 'layoutInlineChildren'.
class ExtendedRenderParagraph extends _RenderParagraph
      ^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/extended_text-13.1.0/lib/src/extended/text_overflow_mixin.dart:882:31: Context: The method 'TextOverflowMixin.layoutInlineChildren' has fewer positional arguments than those of overridden method 'RenderBox with ContainerRenderObjectMixin, RenderInlineChildrenContainerDefaults.layoutInlineChildren'.
  List<PlaceholderDimensions> layoutInlineChildren(
                              ^
../../.pub-cache/hosted/pub.dev/extended_text-13.1.0/lib/src/official/rendering/paragraph.dart:12:7: Context: This is the overridden method ('layoutInlineChildren').
class _RenderParagraph extends RenderBox
      ^
../../.pub-cache/hosted/pub.dev/extended_text-13.1.0/lib/src/extended/rendering/paragraph.dart:31:7: Error: Class '_RenderParagraph with TextOverflowMixin, SelectionMixin with GradientMixin' inherits multiple members named 'RenderInlineChildrenContainerDefaults.layoutInlineChildren%TextOverflowMixin.layoutInlineChildren%TextOverflowMixin.layoutInlineChildren' with incompatible signatures.
Try adding a declaration of 'RenderInlineChildrenContainerDefaults.layoutInlineChildren%TextOverflowMixin.layoutInlineChildren%TextOverflowMixin.layoutInlineChildren' to '_RenderParagraph with TextOverflowMixin, SelectionMixin with GradientMixin'.
class ExtendedRenderParagraph extends _RenderParagraph
      ^
../../Documents/flutter/packages/flutter/lib/src/rendering/paragraph.dart:167:31: Context: This is one of the overridden members.
  List<PlaceholderDimensions> layoutInlineChildren(double maxWidth, ChildLayouter layoutChild, ChildBaselineGetter getChildBaseline) {
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
../../Documents/flutter/packages/flutter/lib/src/rendering/paragraph.dart:167:31: Context: This is one of the overridden members.
  List<PlaceholderDimensions> layoutInlineChildren(double maxWidth, ChildLayouter layoutChild, ChildBaselineGetter getChildBaseline) {
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:1827:29: Error: Too few positional arguments: 3 required, 2 given.
        layoutInlineChildren(
                            ^
../../.pub-cache/hosted/pub.dev/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:1844:29: Error: Too few positional arguments: 3 required, 2 given.
        layoutInlineChildren(
                            ^
../../.pub-cache/hosted/pub.dev/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:1940:29: Error: Too few positional arguments: 3 required, 2 given.
        layoutInlineChildren(width, ChildLayoutHelper.dryLayoutChild));
                            ^
../../.pub-cache/hosted/pub.dev/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:2364:54: Error: Too few positional arguments: 3 required, 2 given.
      ..setPlaceholderDimensions(layoutInlineChildren(
                                                     ^
../../.pub-cache/hosted/pub.dev/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:2377:50: Error: Too few positional arguments: 3 required, 2 given.
    _placeholderDimensions = layoutInlineChildren(
                                                 ^
../../.pub-cache/hosted/pub.dev/tencent_cloud_chat_uikit-2.7.1/lib/ui/widgets/gestured_image.dart:187:8: Error: The setter 'initialAlignment' isn't defined for the class 'GestureDetails'.
 - 'GestureDetails' is from 'package:extended_image/src/gesture/utils.dart' ('../../.pub-cache/hosted/pub.dev/extended_image-8.3.0/lib/src/gesture/utils.dart').
Try correcting the name to the name of an existing setter, or defining a setter or field named 'initialAlignment'.
    )..initialAlignment = _gestureConfig!.initialAlignment;
       ^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/tencent_cloud_chat_uikit-2.7.1/lib/ui/widgets/gestured_image.dart:436:10: Error: The setter 'initialAlignment' isn't defined for the class 'GestureDetails'.
 - 'GestureDetails' is from 'package:extended_image/src/gesture/utils.dart' ('../../.pub-cache/hosted/pub.dev/extended_image-8.3.0/lib/src/gesture/utils.dart').
Try correcting the name to the name of an existing setter, or defining a setter or field named 'initialAlignment'.
      )..initialAlignment = _gestureConfig!.initialAlignment;
         ^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/extended_text-13.1.0/lib/src/official/rendering/paragraph.dart:400:29: Error: Too few positional arguments: 3 required, 2 given.
        layoutInlineChildren(
                            ^
../../.pub-cache/hosted/pub.dev/extended_text-13.1.0/lib/src/official/rendering/paragraph.dart:417:29: Error: Too few positional arguments: 3 required, 2 given.
        layoutInlineChildren(
                            ^
../../.pub-cache/hosted/pub.dev/extended_text-13.1.0/lib/src/official/rendering/paragraph.dart:436:35: Error: Too few positional arguments: 3 required, 2 given.
              layoutInlineChildren(width, ChildLayoutHelper.dryLayoutChild))
                                  ^
../../.pub-cache/hosted/pub.dev/extended_text-13.1.0/lib/src/official/rendering/paragraph.dart:576:58: Error: Too few positional arguments: 3 required, 2 given.
          ..setPlaceholderDimensions(layoutInlineChildren(
                                                         ^
../../.pub-cache/hosted/pub.dev/extended_text-13.1.0/lib/src/official/rendering/paragraph.dart:588:50: Error: Too few positional arguments: 3 required, 2 given.
    _placeholderDimensions = layoutInlineChildren(
                                                 ^
../../.pub-cache/hosted/pub.dev/extended_text-13.1.0/lib/src/official/rendering/paragraph.dart:1241:17: Error: The type 'TextGranularity' is not exhaustively matched by the switch cases since it doesn't match 'TextGranularity.paragraph'.
 - 'TextGranularity' is from 'package:flutter/src/rendering/selection.dart' ('../../Documents/flutter/packages/flutter/lib/src/rendering/selection.dart').
Try adding a default case or cases that match 'TextGranularity.paragraph'.
        switch (granularity) {
                ^
../../.pub-cache/hosted/pub.dev/extended_text-13.1.0/lib/src/official/rendering/paragraph.dart:1234:19: Error: The type 'SelectionEventType' is not exhaustively matched by the switch cases since it doesn't match 'SelectionEventType.selectParagraph'.
 - 'SelectionEventType' is from 'package:flutter/src/rendering/selection.dart' ('../../Documents/flutter/packages/flutter/lib/src/rendering/selection.dart').
Try adding a default case or cases that match 'SelectionEventType.selectParagraph'.
    switch (event.type) {
                  ^
../../.pub-cache/hosted/pub.dev/extended_text-13.1.0/lib/src/official/rendering/paragraph.dart:1761:13: Error: The type 'TextGranularity' is not exhaustively matched by the switch cases since it doesn't match 'TextGranularity.paragraph'.
 - 'TextGranularity' is from 'package:flutter/src/rendering/selection.dart' ('../../Documents/flutter/packages/flutter/lib/src/rendering/selection.dart').
Try adding a default case or cases that match 'TextGranularity.paragraph'.
    switch (granularity) {
            ^
Failed to compile application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions