PhotoItemConfig class
图片类的配置
- Inheritance
-
- Object
- BasicItemConfig
- PhotoItemConfig
Constructors
- PhotoItemConfig({required String url, BoxFit fit = BoxFit.cover, String placeHolder = "packages/phoenix_gallery/assets/icons/grey_place_holder.png", VoidCallback? onTap, VoidCallback? onDoubleTap, VoidCallback? onLongPress, String? name, String? des, bool showBottom = false, PhotoBottomCardState bottomCardModel = PhotoBottomCardState.cantFold, double bottomContentHeight = 150, GalleryDetailConfig? themeData})
Properties
- bottomCardModel → PhotoBottomCardState
-
PhotoBottomCardState 底部展示卡片的模式
final
- bottomContentHeight → double
-
指定展开不可收起下 content的高度
final
- des → String?
-
图片描述公 用于详情页展示
final
- fit → BoxFit
-
图片的展示模式
final
- groupIndex ↔ int?
-
该配置的 groupIndex
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
图片名称 用于详情页展示
final
- onDoubleTap → VoidCallback?
-
详情页双击回调
final
- onLongPress → VoidCallback?
-
详情页长按回调
final
- onTap → VoidCallback?
-
详情页图片点击回调
final
- placeHolder → String
-
占位图
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showBottom → bool
-
详情页是否展示底部卡片,需要提供name和des信息
final
- themeData ↔ GalleryDetailConfig?
-
getter/setter pair
- type ↔ String?
-
该配置的 type 信息
getter/setter pairinherited
- url → String
-
图片url
final
Methods
-
buildDetailWidget(
BuildContext context, List< BasicGroupConfig> allConfig, int groupId, int index) → Widget -
构建查看详情页的 widget
override
-
buildSummaryWidget(
BuildContext context, List< BasicGroupConfig> allConfig, int groupId, int index) → Widget -
构建简略页的 widget
override
-
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