insta_assets_picker library

Classes

AdvancedCustomFilter
The advanced custom filter.
AlbumType
The extra information of the album type.
AndroidMediaColumns
A class that contains the names of the columns used in the custom filter.
AndroidPermission
The permission for android.
ArabicAssetPickerTextDelegate
AssetPickerTextDelegate implements with Arabic. الترجمة العربية
AssetEntity
The abstraction of assets (images/videos/audios). It represents a series of fields MediaStore on Android and the PHAsset object on iOS/macOS.
AssetEntityGridItemBuilder
AssetEntityGridItemWidgetState
AssetEntityImage
A widget that displays an AssetEntity image.
AssetEntityImageProvider
The ImageProvider that handles AssetEntity.
AssetPathEntity
The abstraction of albums and folders. It represent a bucket in the MediaStore on Android, and the PHAssetCollection object on iOS/macOS.
AssetPicker<Asset, Path>
AssetPickerAppBar
A custom app bar. 自定义的顶栏
AssetPickerAppBarWrapper
Wrapper for AssetPickerAppBar. Avoid elevation covered by body. 顶栏封装。防止内容块层级高于顶栏导致遮挡阴影。
AssetPickerBuilderDelegate<Asset, Path>
The delegate to build the whole picker's components.
AssetPickerConfig
AssetPickerDelegate
AssetPickerPageRoute<T>
Built a slide page transition for the picker. 为选择器构造一个上下进出的页面过渡动画
AssetPickerProvider<Asset, Path>
Helps the assets picker to manage Paths and Assets.
AssetPickerState<Asset, Path>
AssetPickerTextDelegate
Text delegate that controls text in widgets. 控制部件中的文字实现
AssetPickerViewer<Asset, Path>
AssetPickerViewerBuilderDelegate<Asset, Path>
AssetPickerViewerProvider<A>
ChangeNotifier for assets picker viewer. 资源选择查看器的 provider model.
AssetPickerViewerState<Asset, Path>
ColumnUtils
Utility functions for working with the CustomColumns class.
ColumnWhereCondition
The where condition item.
CommonSortPathDelegate
Common sort path delegate. 常用的路径排序实现
CustomColumns
A class that contains the names of the columns used in the custom filter.
CustomFilter
Full custom filter.
DarwinAlbumType
The extra information of the album type on macOS and iOS.
DarwinColumns
A class that contains the names of the columns of the iOS/macOS platform.
DateColumnWhereCondition
The where condition item for date type.
DateTimeCond
A class that specifies the date and time constraints for queried assets.
DefaultAssetPickerBuilderDelegate
DefaultAssetPickerProvider
The default implementation of the AssetPickerProvider for the picker. The Asset is AssetEntity, and the Path is AssetPathEntity.
DefaultAssetPickerViewerBuilderDelegate
DurationConstraint
A class that specifies the duration constraints for queried assets.
EnglishAssetPickerTextDelegate
AssetPickerTextDelegate implements with English. English Localization
FilterOption
A series of filter options for AssetType when querying assets.
FilterOptionGroup
A collection of filtering and sorting options for querying assets.
FrenchAssetPickerTextDelegate
AssetPickerTextDelegate implements with French. Délégué texte français
GermanAssetPickerTextDelegate
AssetPickerTextDelegate implementiert mit der deutschen Übersetzung. Deutsche Textimplementierung.
HebrewAssetPickerTextDelegate
AssetPickerTextDelegate implements with Hebrew. תרגום בשפה העברית
InstaAssetCropDelegate
InstaAssetCropTransform
InstaAssetPicker
InstaAssetPickerConfig
Configurations for the InstaAssetPickerBuilder.
InstaAssetsCropData
The crop parameters state, can be used at exportation or to load the crop view
InstaAssetsExportData
InstaAssetsExportDetails
Contains all the parameters of the exportation
InstaAssetVideoPlayerStatefulWidget
InstaPickerCircleIconButton
JapaneseAssetPickerTextDelegate
AssetPickerTextDelegate implements with Japanese. 日本語の TextDelegate
KoreanAssetPickerTextDelegate
AssetPickerTextDelegate implements with Korean. 한국어 현지화
LatLng
Represents a geographical location as a latitude-longitude pair.
NotifyManager
The manager for receiving notifications when assets change.
OhosAlbumType
The extra information of the album type on OpenHarmony.
OhosColumns
A class that contains the names of the columns used in the custom filter.
OrderByItem
The order by item.
OrderOption
A class that specifies the ordering criteria for queried assets.
PathWrapper<Path>
A wrapper that holds Path with it's nullable (late initialize) fields.
PermissionRequestOption
See PermissionState.
PhotoCachingManager
The cache manager that helps to create/remove caches with specified assets.
PhotoManager
The core manager of this package, providing methods for accessing and managing assets.
PhotoManagerPlugin
The plugin class is the core class that call channel's methods.
PMDarwinPathFilter
The filter of AssetPathEntity on iOS and macOS.
PMFilter
The base class of all the filters.
PMOhosPathFilter
The filter of AssetPathEntity on OpenHarmony.
PMPathFilter
For filter the AssetPathEntity.
PMProgressHandler
Manages the progress of asset downloads from cloud storage services, such as iCloud.
PMProgressState
A state class that contains progress of the current downloading and state to indicate the request state of the asset.
RequestType
The request type when requesting paths.
RussianAssetPickerTextDelegate
AssetPickerTextDelegate implements with Russian. Локализация на русский язык.
SizeConstraint
A class that specifies the size constraints for queried images.
SortPathDelegate<Path>
@{template wechat_assets_picker.delegates.SortPathDelegate} Delegate to sort asset path entities. 用于资源路径排序的实现 @{endtemplate}
SqlCustomFilter
The sql custom filter.
TextWhereCondition
The where condition item for text.
ThumbnailOption
The options used when requesting thumbnails.
ThumbnailSize
The dimensions of the thumbnail data for an AssetEntity.
TurkishAssetPickerTextDelegate
AssetPickerTextDelegate implements with Turkish Türkçe Yerelleştirme
VietnameseAssetPickerTextDelegate
AssetPickerTextDelegate implements with Vietnamese. Dịch tiếng Việt
WhereConditionGroup
The group of WhereConditionItem and WhereConditionGroup.
WhereConditionItem
The where condition item.
WhereItem
Where item class

Enums

AssetType
The type of the asset.
BaseFilterType
The type of the filter.
DeliveryMode
Enumeration for PHImageRequestOptionsDeliveryMode on iOS/macOS.
ImageFileType
Common file types for images.
IosAccessLevel
The app’s level of access to the user’s photo library.
LogicalType
The logical operator used in the CustomFilter.
OrderOptionType
An enumeration of possible options for sorting asset lists.
PermissionState
Information about app’s authorization to access the user’s photo library.
PMDarwinAssetCollectionSubtype
See document: https://developer.apple.com/documentation/photokit/phassetcollectionsubtype
PMDarwinAssetCollectionType
The type of PHAssetCollection.
PMDarwinAVFileType
File format UTIs typedef NSString * AVFileType NS_EXTENSIBLE_STRING_ENUM;
PMOhosAlbumSubtype
The subtype of the album on ohos. See also: https://docs.openharmony.cn/pages/v4.0/zh-cn/application-dev/reference/apis/js-apis-photoAccessHelper.md#albumsubtype
PMOhosAlbumType
The type of the album on ohos. See also: https://docs.openharmony.cn/pages/v4.0/zh-cn/application-dev/reference/apis/js-apis-photoAccessHelper.md#albumtype
PMRequestState
Indicate the current state when an asset is loading with PMProgressHandler.
ResizeContentMode
Fitting an image’s aspect ratio to a requested size on iOS/macOS.
ResizeMode
Specifies how to resize the requested image on iOS/macOS.
SpecialImageType
An enumeration of special image types.
SpecialItemPosition
Provide an item slot for custom widget insertion. 提供一个自定义位置供特殊item放入资源列表中。
SpecialPickerType
Provide some special picker types to integrate un-common pick pattern. 提供一些特殊的选择器类型以整合非常规的选择行为。
ThumbnailFormat
Which format the thumbnail should be, generally support JPG and PNG.

Functions

assetPickerTextDelegateFromLocale(Locale? locale) AssetPickerTextDelegate
Obtain the text delegate from the given locale.

Typedefs

AssetPickerPageRouteBuilder<T> = AssetPickerPageRoute<T> Function(Widget picker)
Build AssetPickerPageRoute with the given generic type. 构建匹配泛型的 AssetPickerPageRoute
AssetsChangeCallback<Path> = void Function(PermissionState permission, MethodCall call, Path? path)
The callback that will be called when the system notifies assets changes. 当系统通知资源变化时将调用的回调。
AssetsChangeRefreshPredicate<Path> = bool Function(PermissionState permission, MethodCall call, Path? path)
Whether assets changing should call refresh with the given call and the current selected path. 判断资源变化是否根据 call 和当前选中的 path 进行更新。
AssetSelectPredicate<Asset> = FutureOr<bool> Function(BuildContext context, Asset asset, bool isSelected)
Predicate whether an asset can be selected or unselected. 判断资源可否被选择。
CNP<T extends ChangeNotifier?> = ChangeNotifierProvider<T>
Mirroring ChangeNotifierProvider.
LimitedPermissionOverlayPredicate = bool Function(PermissionState permissionState)
Predicate whether the limited permission overlay should be displayed. 判断有限的权限情况下是否展示提示页面。
LoadingIndicatorBuilder = Widget Function(BuildContext context, bool isAssetsEmpty)
Build the loading indicator with the given isAssetsEmpty. 根据给定的 isAssetsEmpty 构建加载指示器。
PathNameBuilder<Path> = String Function(Path path)
Build customized path name. 构建自定义路径名称。
SpecialItemBuilder<Path> = Widget? Function(BuildContext context, Path? path, int length)
Build the special item with the given path and assets length. 根据给定的目录和资源数量构建特殊 item。