Platforms
dart
Description
我使用的鸿蒙flutter版本是:Flutter 3.27.5-ohos-1.0.4 • channel [user-branch] • https://gitcode.com/openharmony-tpc/flutter_flutter.git
Framework • revision aeb9e1296b (9 days ago) • 2026-03-14 19:16:17 +0800
Engine • revision e672b006cb
Tools • Dart 3.6.2 • DevTools 2.40.0
extended_text版本是 13.0.2
报错信息如下:
./../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/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 layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/lib/src/official/rendering/paragraph.dart:12:7: Context: This is the overridden method ('layoutInlineChildren').
class _RenderParagraph extends RenderBox
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/lib/src/extended/rendering/paragraph.dart:27:7: Error: Applying the mixin 'TextOverflowMixin' to '_RenderParagraph' introduces an erroneous override of 'layoutInlineChildren'.
class ExtendedRenderParagraph extends _RenderParagraph
^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/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 layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/lib/src/official/rendering/paragraph.dart:12:7: Context: This is the overridden method ('layoutInlineChildren').
class _RenderParagraph extends RenderBox
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0-ohos/lib/src/official/rendering/editable.dart:1828:29: Error: Too few positional arguments: 3 required, 2 given.
layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0-ohos/lib/src/official/rendering/editable.dart:1845:29: Error: Too few positional arguments: 3 required, 2 given.
layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0-ohos/lib/src/official/rendering/editable.dart:1941:29: Error: Too few positional arguments: 3 required, 2 given.
layoutInlineChildren(width, ChildLayoutHelper.dryLayoutChild));
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0-ohos/lib/src/official/rendering/editable.dart:2368:54: Error: Too few positional arguments: 3 required, 2 given.
..setPlaceholderDimensions(layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0-ohos/lib/src/official/rendering/editable.dart:2381:50: Error: Too few positional arguments: 3 required, 2 given.
_placeholderDimensions = layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0-ohos/lib/src/official/widgets/editable_text.dart:3015:28: Error: Member not found: 'removeFocus'.
case TextInputAction.removeFocus:
^^^^^^^^^^^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0-ohos/lib/src/official/widgets/editable_text.dart:3197:32: Error: Member not found: 'removeFocus'.
case TextInputAction.removeFocus:
^^^^^^^^^^^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/lib/src/official/rendering/paragraph.dart:400:29: Error: Too few positional arguments: 3 required, 2 given.
layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/lib/src/official/rendering/paragraph.dart:417:29: Error: Too few positional arguments: 3 required, 2 given.
layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/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.flutter-io.cn/extended_text-13.0.2/lib/src/official/rendering/paragraph.dart:576:58: Error: Too few positional arguments: 3 required, 2 given.
..setPlaceholderDimensions(layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/lib/src/official/rendering/paragraph.dart:588:50: Error: Too few positional arguments: 3 required, 2 given.
_placeholderDimensions = layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/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' ('../../sdk/harmony/flutter_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.flutter-io.cn/extended_text-13.0.2/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' ('../../sdk/harmony/flutter_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.flutter-io.cn/extended_text-13.0.2/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' ('../../sdk/harmony/flutter_flutter/packages/flutter/lib/src/rendering/selection.dart').
Try adding a default case or cases that match 'TextGranularity.paragraph'.
switch (granularity) {
^
Target kernel_snapshot_program failed: Exception
My code
No response
Try do it
No response
Platforms
dart
Description
我使用的鸿蒙flutter版本是:Flutter 3.27.5-ohos-1.0.4 • channel [user-branch] • https://gitcode.com/openharmony-tpc/flutter_flutter.git
Framework • revision aeb9e1296b (9 days ago) • 2026-03-14 19:16:17 +0800
Engine • revision e672b006cb
Tools • Dart 3.6.2 • DevTools 2.40.0
extended_text版本是 13.0.2
报错信息如下:
./../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/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 layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/lib/src/official/rendering/paragraph.dart:12:7: Context: This is the overridden method ('layoutInlineChildren').
class _RenderParagraph extends RenderBox
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/lib/src/extended/rendering/paragraph.dart:27:7: Error: Applying the mixin 'TextOverflowMixin' to '_RenderParagraph' introduces an erroneous override of 'layoutInlineChildren'.
class ExtendedRenderParagraph extends _RenderParagraph
^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/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 layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/lib/src/official/rendering/paragraph.dart:12:7: Context: This is the overridden method ('layoutInlineChildren').
class _RenderParagraph extends RenderBox
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0-ohos/lib/src/official/rendering/editable.dart:1828:29: Error: Too few positional arguments: 3 required, 2 given.
layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0-ohos/lib/src/official/rendering/editable.dart:1845:29: Error: Too few positional arguments: 3 required, 2 given.
layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0-ohos/lib/src/official/rendering/editable.dart:1941:29: Error: Too few positional arguments: 3 required, 2 given.
layoutInlineChildren(width, ChildLayoutHelper.dryLayoutChild));
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0-ohos/lib/src/official/rendering/editable.dart:2368:54: Error: Too few positional arguments: 3 required, 2 given.
..setPlaceholderDimensions(layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0-ohos/lib/src/official/rendering/editable.dart:2381:50: Error: Too few positional arguments: 3 required, 2 given.
_placeholderDimensions = layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0-ohos/lib/src/official/widgets/editable_text.dart:3015:28: Error: Member not found: 'removeFocus'.
case TextInputAction.removeFocus:
^^^^^^^^^^^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0-ohos/lib/src/official/widgets/editable_text.dart:3197:32: Error: Member not found: 'removeFocus'.
case TextInputAction.removeFocus:
^^^^^^^^^^^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/lib/src/official/rendering/paragraph.dart:400:29: Error: Too few positional arguments: 3 required, 2 given.
layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/lib/src/official/rendering/paragraph.dart:417:29: Error: Too few positional arguments: 3 required, 2 given.
layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/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.flutter-io.cn/extended_text-13.0.2/lib/src/official/rendering/paragraph.dart:576:58: Error: Too few positional arguments: 3 required, 2 given.
..setPlaceholderDimensions(layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/lib/src/official/rendering/paragraph.dart:588:50: Error: Too few positional arguments: 3 required, 2 given.
_placeholderDimensions = layoutInlineChildren(
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/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'.
Try adding a default case or cases that match 'TextGranularity.paragraph'.
switch (granularity) {
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/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'.
Try adding a default case or cases that match 'SelectionEventType.selectParagraph'.
switch (event.type) {
^
../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-13.0.2/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'.
Try adding a default case or cases that match 'TextGranularity.paragraph'.
switch (granularity) {
^
Target kernel_snapshot_program failed: Exception
My code
No response
Try do it
No response