We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 262676c commit 2569c17Copy full SHA for 2569c17
lib/src/delegates/asset_picker_builder_delegate.dart
@@ -1208,6 +1208,14 @@ class DefaultAssetPickerBuilderDelegate
1208
return Positioned.fill(
1209
child: GestureDetector(
1210
onTap: () async {
1211
+ // While the special type is WeChat moment, picture and video cannot
1212
+ // be selected at the same time. Video select should be banned if any
1213
+ // picture is selected.
1214
+ if (specialPickerType == SpecialPickerType.wechatMoment &&
1215
+ asset.type == AssetType.video &&
1216
+ provider.selectedAssets.isNotEmpty) {
1217
+ return;
1218
+ }
1219
final List<AssetEntity>? result =
1220
await AssetPickerViewer.pushToViewer(
1221
context,
0 commit comments