PhotoItemConfig constructor
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,
Implementation
PhotoItemConfig({
required this.url,
this.fit = BoxFit.cover,
this.placeHolder =
"packages/phoenix_gallery/assets/icons/grey_place_holder.png",
this.onTap,
this.onDoubleTap,
this.onLongPress,
this.name,
this.des,
this.showBottom = false,
this.bottomCardModel = PhotoBottomCardState.cantFold,
this.bottomContentHeight = 150,
this.themeData,
}) {
themeData ??= GalleryDetailConfig();
themeData = BaseThemeConfig.instance
.getConfig(configId: themeData!.configId)
.galleryDetailConfig
.merge(themeData);
}