Skip to content

[BUG] 无法自定义数量选择限制 #702

Closed as not planned
Closed as not planned
@pichsy

Description

@pichsy

Describe the bug
无法自定义选择数量限制

How to reproduce
// 使用微信相册选择器
final List? result = await AssetPicker.pickAssets(
context,
pickerConfig: AssetPickerConfig(
maxAssets: 100,
requestType: pmRequestType,
textDelegate: const AssetPickerTextDelegate(),
pickerTheme: ThemeData.dark().copyWith(
colorScheme: const ColorScheme.dark(
primary: Color(0xFF5E24F7),
onPrimary: Colors.white,
secondary: Color(0xFFA405FF),
onSecondary: Colors.white,
),
),
),
);
maxAssets 不管写成几,进去都是限制9个。求解决。

Steps to reproduce the behavior:
// 使用微信相册选择器
final List? result = await AssetPicker.pickAssets(
context,
pickerConfig: AssetPickerConfig(
maxAssets: 100,
requestType: pmRequestType,
textDelegate: const AssetPickerTextDelegate(),
pickerTheme: ThemeData.dark().copyWith(
colorScheme: const ColorScheme.dark(
primary: Color(0xFF5E24F7),
onPrimary: Colors.white,
secondary: Color(0xFFA405FF),
onSecondary: Colors.white,
),
),
),
);
maxAssets 不管写成几,进去都是限制9个。求解决。

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. Error occurred.

Expected behavior

maxAssets 设置成几,进去限制几个。

Screenshots (If contains)
暂无截图,代码就是截图

Version information

  • Device: [e.g. iPhone X]
  • OS: [e.g. iOS 14.7.1]
  • Package Version: [e.g. 2.4.1]
  • Flutter Version: [e.g. v2.5.0]

Additional context
no data

Metadata

Metadata

Assignees

No one assigned

    Labels

    i: read documentThe author of the issue didn't read the document.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions