Skip to content

[Bug report] use CustomFilter.sql to filter android special mime_type data but facing error #925

@YanhqZ

Description

@YanhqZ

Version

2.6.0

Platforms

Android

Device Model

Galaxy S22Ultra(Android 13)

flutter info

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.10, on macOS 12.6.1 21G217 darwin-arm, locale
    zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] IntelliJ IDEA Community Edition (version 2022.3.3)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

How to reproduce?

I use CustomFilter.sql to filter android special mime_type data, but face error. Is there have any solution?

Logs

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.10, on macOS 12.6.1 21G217 darwin-arm, locale
    zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] IntelliJ IDEA Community Edition (version 2022.3.3)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

Example code (optional)

final List<AssetPathEntity> paths = await PhotoManager.getAssetPathList(
      onlyAll: true,
      type: RequestType.image,
      filterOption: createFilterOption(),
    );


  PMFilter? createFilterOption() {
        return CustomFilter.sql(
          where: '${CustomColumns.android.mediaType} = "image/jpeg"',
        );
  }

Contact

No response

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