MultiAssetPicker class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FlAssetsPicker
- MultiAssetPicker
Constructors
-
MultiAssetPicker({Key? key, ValueChanged<
List< ? onChanged, AssetsPickerController? controller, PickerAssetEntryBuilderConfig entryConfig = const PickerAssetEntryBuilderConfig(), MultiPickerEntryBuilder? entryBuilder, PickerWrapBuilderConfig wrapConfig = const PickerWrapBuilderConfig(), PickerWrapBuilder? wrapBuilder, List<ExtendedAssetEntity> >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, PickerFromTypeBuilder? fromTypesBuilder, FlAssetsPickerCheckPermission? checkPermission, FlPreviewAssetsBuilder? previewBuilder, FlPreviewAssetsSheetRouteBuilder? previewSheetRouteBuilder})AssetEntity> > -
const
Properties
- allowDelete → bool
-
是否显示删除按钮
final
- checkPermission → FlAssetsPickerCheckPermission?
-
获取权限
finalinherited
- controller → AssetsPickerController?
-
资源控制器
final
- enablePicker → bool
-
是否开启 资源选择
finalinherited
- entryBuilder → MultiPickerEntryBuilder?
-
资源渲染子元素自定义构造
final
- entryConfig → PickerAssetEntryBuilderConfig
-
entry UI 样式配置
final
- errorCallback → PickerErrorCallback?
-
错误消息回调
finalinherited
-
fromRequestTypes
→ List<
PickerFromTypeConfig> -
请求类型
finalinherited
- fromTypesBuilder → PickerFromTypeBuilder?
-
选择框 自定义
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
initialData
→ List<
ExtendedAssetEntity> -
默认初始资源
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxCount → int
-
最多选择几个资源
finalinherited
- maxVideoCount → int
-
最大选择视频数量
finalinherited
-
onChanged
→ ValueChanged<
List< ?ExtendedAssetEntity> > -
资源选择变化
final
-
pageRouteBuilderForAssetPicker
→ AssetPickerPageRouteBuilder<
List< ?AssetEntity> > -
finalinherited
-
pageRouteBuilderForCameraPicker
→ CameraPickerPageRoute<
AssetEntity> Function(Widget picker)? -
finalinherited
- pickerIconBuilder → PickerIconBuilder?
-
资源选择 icon 自定义构造
final
- previewBuilder → FlPreviewAssetsBuilder?
-
预览框 builder
final
- previewSheetRouteBuilder → FlPreviewAssetsSheetRouteBuilder?
-
弹出预览框 builder
final
- renovate → FlAssetFileRenovate?
-
资源重新编辑
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
finalinherited
- wrapBuilder → PickerWrapBuilder?
-
final
- wrapConfig → PickerWrapBuilderConfig
-
wrap UI 样式配置
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< MultiAssetPicker> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
convertFiles(
List< File> files, {AssetType assetsType = AssetType.image}) → List<ExtendedAssetEntity> -
files
文件地址转换 List -
convertPaths(
List< String> paths, {AssetType assetsType = AssetType.image}) → List<ExtendedAssetEntity> -
paths
文件地址转换 List -
convertUrls(
String url, {AssetType assetsType = AssetType.image, String? splitPattern}) → List< ExtendedAssetEntity> -
url
地址转换 List -
toDynamicList(
List< ExtendedAssetEntity> list) → List - 具体的数据 顺序为 url > path > file
-
toStringList(
List< ExtendedAssetEntity> list) → List<String> - 具体的数据 顺序为 url > path > file