Skip to content

[BUG] Error: No named parameter with the name 'withSubtype'. #698

Closed as not planned
@suyie001

Description

@suyie001

Describe the bug

在使用wechat_assets_picker: 9.5.1之后无法运行项目,报错为:
../../.pub-cache/hosted/pub.dev/wechat_assets_picker-9.5.1/lib/src/delegates/asset_picker_builder_delegate.dart:1872:7: Error: No named parameter with the name 'withSubtype'.
withSubtype: false,
^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/wechat_picker_library-1.0.3/lib/src/widgets/locally_available_builder.dart:13:9: Context: Found this candidate, but the arguments don't match.
const LocallyAvailableBuilder({
^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/wechat_assets_picker-9.5.1/lib/src/widget/builder/image_page_builder.dart:138:7: Error: No named parameter with the name 'withSubtype'.
withSubtype: _isOriginal,
^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/wechat_picker_library-1.0.3/lib/src/widgets/locally_available_builder.dart:13:9: Context: Found this candidate, but the arguments don't match.
const LocallyAvailableBuilder({
^^^^^^^^^^^^^^^^^^^^^^^
Target kernel_snapshot_program failed: Exception

FAILURE: Build failed with an exception.

Expected behavior

Screenshots (If contains)

Version information

  • Device: [e.g. iPhone X]
  • OS: [e.g. iOS 14.7.1]
  • Package Version: [e.g. 9.5.1]
  • Flutter Version: [e.g. v3.29.2 stable]

Metadata

Metadata

Assignees

No one assigned

    Labels

    s: invalidThis doesn't seem right.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions