AssetPickerViewerBuilderDelegate<A, P> class
abstract
- Implementers
Constructors
-
AssetPickerViewerBuilderDelegate({required List<
A> previewAssets, required ThemeData themeData, required int currentIndex, AssetPickerProvider<A, P> ? selectorProvider, AssetPickerViewerProvider<A> ? provider, List<A> ? selectedAssets, int? maxAssets})
Properties
- bottomBarHeight → double
-
Height for bottom bar widget.
底栏部件的高度
no setter
- bottomDetailHeight → double
-
no setter
- bottomPreviewHeight → double
-
Height for bottom preview widget.
底栏预览部件的高度
no setter
- currentAsset → A
-
Getter for the current asset.
当前资源的Getter
no setter
- currentIndex ↔ int
-
Current previewing index in assets.
当前查看的索引
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAppleOS → bool
-
Whether the current platform is Apple OS.
当前平台是否为苹果系列系统
no setter
- isSelectedPreviewing → bool
-
Whether the viewer is under preview mode for selected assets.
当前是否处于查看已选中资源的模式
latefinal
- maxAssets → int?
-
Maximum count for asset selection.
资源选择的最大数量
final
-
pageStreamController
→ StreamController<
int> -
StreamController for viewing page index update.
用于更新当前正在浏览的资源页码的流控制器
final
-
previewAssets
→ List<
A> -
Assets provided to preview.
提供预览的资源
final
-
provider
→ AssetPickerViewerProvider<
A> ? -
ChangeNotifier for photo selector viewer.
资源预览器的状态保持
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedAssets
→ List<
A> ? -
Selected assets.
已选的资源
final
- selectedCount → int
-
The length getter for selected assets currently.
当前选中的资源的长度获取
no setter
-
selectedNotifier
→ ValueNotifier<
int> -
Construct a notifier to notify
whether if a new asset is selected or unselected.
构造一个通知器,在新资源选中或取消选中时通知。
latefinal
-
selectorProvider
→ AssetPickerProvider<
A, P> ? -
Provider for AssetPicker.
资源选择器的状态保持
final
- themeData → ThemeData
-
Theme for the viewer.
主题
final
-
viewerState
↔ AssetPickerViewerState<
A, P> -
The State for a viewer.
预览器的状态实例
latefinal
- vsync ↔ TickerProvider
-
The TickerProvider for animations.
用于动画的 TickerProvider
latefinal
Methods
-
assetPageBuilder(
BuildContext context, int index) → Widget - Split page builder according to type of asset. 根据资源类型使用不同的构建页
-
bottomDetailBuilder(
BuildContext context) → Widget - Detail widget aligned to bottom. 底部信息部件
-
bottomDetailItemBuilder(
BuildContext context, int index) → Widget - Thumb item widgets in bottom detail. 底部信息栏单个资源缩略部件
-
build(
BuildContext context) → Widget - Yes, the build method. 没错,是它是它就是它,我们亲爱的 build 方法~
-
confirmButton(
BuildContext context) → Widget - Confirm button. 确认按钮
-
dispose(
) → void - Keep a dispose method to sync with State. 保留一个 dispose 方法与 State 同步。
-
failedItemBuilder(
BuildContext context) → Widget - The item widget when AssetEntity.thumbData load failed. 资源缩略数据加载失败时使用的部件
-
initStateAndTicker(
AssetPickerViewerState< A, P> s, TickerProvider v) → void -
Call when viewer is calling
initState
. 当预览器调用initState
时注册 State 和 TickerProvider。 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
previewWidgetLoadStateChanged(
BuildContext context, ExtendedImageState state, {bool hasLoaded = false}) → Widget - Common image load state changed callback with Widget. 图片加载状态的部件回调
-
selectAsset(
A entity) → void -
selectButton(
BuildContext context) → Widget - Select button. 选择按钮
-
toString(
) → String -
A string representation of this object.
inherited
-
unSelectAsset(
A entity) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited