InstaAssetPickerConfig class

Configurations for the InstaAssetPickerBuilder.

Constructors

InstaAssetPickerConfig({int gridCount = _kGridCount, ThemeData? pickerTheme, SpecialItemPosition? specialItemPosition, SpecialItemBuilder<AssetPathEntity>? specialItemBuilder, LoadingIndicatorBuilder? loadingIndicatorBuilder, AssetSelectPredicate<AssetEntity>? selectPredicate, LimitedPermissionOverlayPredicate? limitedPermissionOverlayPredicate, Color? themeColor, AssetPickerTextDelegate? textDelegate, ThumbnailSize gridThumbnailSize = defaultAssetGridPreviewSize, ThumbnailSize? previewThumbnailSize, PathNameBuilder<AssetPathEntity>? pathNameBuilder, String? title, InstaCropDelegate cropDelegate = const InstaCropDelegate(), bool closeOnComplete = false, bool skipCropOnComplete = false, InstaPickerActionsBuilder? actionsBuilder})
const

Properties

actionsBuilder → InstaPickerActionsBuilder?
The Widget to display on top of the assets grid view.
final
closeOnComplete bool
Specifies if the picker should be closed after assets selection confirmation.
final
cropDelegate InstaCropDelegate
Customize the display and export options of crops
final
gridCount int
Specifies the number of assets in the cross axis.
final
gridThumbnailSize ThumbnailSize
Thumbnail size in the grid.
final
hashCode int
The hash code for this object.
no setterinherited
limitedPermissionOverlayPredicate LimitedPermissionOverlayPredicate?
Specifies if the limited permission overlay should be displayed.
final
loadingIndicatorBuilder LoadingIndicatorBuilder?
The loader indicator to display in the picker.
final
pathNameBuilder PathNameBuilder<AssetPathEntity>?
Build customized path name. 构建自定义路径名称。
final
pickerTheme ThemeData?
Specifies the theme to apply to the picker. It is by default initialized with the primaryColor of the context theme.
final
previewThumbnailSize ThumbnailSize?
Preview thumbnail size in the crop viewer.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectPredicate AssetSelectPredicate<AssetEntity>?
Predicate whether an asset can be selected or unselected.
final
skipCropOnComplete bool
Specifies if the assets should be cropped when the picker is closed. Set to true if you want to perform the crop yourself.
final
specialItemBuilder SpecialItemBuilder<AssetPathEntity>?
Specifies Widget for the the special item.
final
specialItemPosition SpecialItemPosition?
Set a special item in the picker with several positions. Since the grid view is reversed, SpecialItemPosition.prepend will be at the top and SpecialItemPosition.append at the bottom.
final
textDelegate AssetPickerTextDelegate?
Specifies the language to apply to the picker.
final
themeColor Color?
Main color for the picker.
final
title String?
Specifies the text title in the picker AppBar.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited