Description
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个。求解决。
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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