GalleryDetailPage class

查看大图交互模式-详情页 组件提供了(列表页<-->详情页)这种交互模式的骨架, 适用于查看图片,视频 PDF 等场景。 默认只实现了图片的查看,如果想要扩展视频或者pdf自行扩展配置接口可实现。

Inheritance

Constructors

GalleryDetailPage({Key? key, required List<BasicGroupConfig> allConfig, int initGroupId = 0, int initIndexId = 0, bool fromSummary = false, Widget detailRightAction(int? groupId, int? indexId)?, GalleryController? controller, GalleryDetailConfig? themeData})

Properties

allConfig List<BasicGroupConfig>
该交互下所有 item 的配置集合
final
controller GalleryController?
控制图片查看刷新
final
detailRightAction Widget Function(int? groupId, int? indexId)?
右上角自定义设置按钮,若为空,则展示 "全部图片"
final
fromSummary bool
是否来自于列表页,一般情况不要使用,默认 false
final
hashCode int
The hash code for this object.
no setterinherited
initGroupId int
初始位于第几组,默认 0
final
initIndexId int
初始位于组内的第几个,默认 0
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
themeData GalleryDetailConfig?
主题配置
getter/setter pair

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _BrnGalleryDetailPageState
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, int wrapWidth = 65}) 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