MultiAssetPicker constructor
const
MultiAssetPicker({
- Key? key,
- ValueChanged<
List< ? onChanged,ExtendedAssetEntity> > - AssetsPickerController? controller,
- PickerAssetEntryBuilderConfig entryConfig = const PickerAssetEntryBuilderConfig(),
- MultiPickerEntryBuilder? entryBuilder,
- PickerWrapBuilderConfig wrapConfig = const PickerWrapBuilderConfig(),
- PickerWrapBuilder? wrapBuilder,
- List<
ExtendedAssetEntity> initialData = const [], - bool allowDelete = true,
- PickerIconBuilder? pickerIconBuilder,
- bool enablePicker = true,
- PickerErrorCallback? errorCallback,
- int maxVideoCount = 1,
- int maxCount = 9,
- List<
PickerFromTypeConfig> fromRequestTypes = const [PickerFromTypeConfig(fromType: PickerFromType.assets, text: Text('图库选择'), requestType: RequestType.common), PickerFromTypeConfig(fromType: PickerFromType.camera, text: Text('相机拍摄'), requestType: RequestType.common), PickerFromTypeConfig(fromType: PickerFromType.cancel, text: Text('取消'), requestType: RequestType.common)], - FlAssetFileRenovate? renovate,
- CameraPickerPageRoute<
AssetEntity> pageRouteBuilderForCameraPicker(- Widget picker
- AssetPickerPageRouteBuilder<
List< ? pageRouteBuilderForAssetPicker,AssetEntity> > - PickerFromTypeBuilder? fromTypesBuilder,
- FlAssetsPickerCheckPermission? checkPermission,
- FlPreviewAssetsBuilder? previewBuilder,
- FlPreviewAssetsSheetRouteBuilder? previewSheetRouteBuilder,
Implementation
const MultiAssetPicker({
super.key,
this.onChanged,
this.controller,
this.entryConfig = const PickerAssetEntryBuilderConfig(),
this.entryBuilder,
this.wrapConfig = const PickerWrapBuilderConfig(),
this.wrapBuilder,
this.initialData = const [],
this.allowDelete = true,
this.pickerIconBuilder,
super.enablePicker = true,
super.errorCallback,
super.maxVideoCount = 1,
super.maxCount = 9,
super.fromRequestTypes = const [
PickerFromTypeConfig(
fromType: PickerFromType.assets,
text: Text('图库选择'),
requestType: RequestType.common),
PickerFromTypeConfig(
fromType: PickerFromType.camera,
text: Text('相机拍摄'),
requestType: RequestType.common),
PickerFromTypeConfig(
fromType: PickerFromType.cancel,
text: Text('取消'),
requestType: RequestType.common),
],
super.renovate,
super.pageRouteBuilderForCameraPicker,
super.pageRouteBuilderForAssetPicker,
super.fromTypesBuilder,
super.checkPermission,
this.previewBuilder,
this.previewSheetRouteBuilder,
});