PhotoItemConfig constructor

PhotoItemConfig({
  1. required String url,
  2. BoxFit fit = BoxFit.cover,
  3. String placeHolder = "packages/phoenix_gallery/assets/icons/grey_place_holder.png",
  4. VoidCallback? onTap,
  5. VoidCallback? onDoubleTap,
  6. VoidCallback? onLongPress,
  7. String? name,
  8. String? des,
  9. bool showBottom = false,
  10. PhotoBottomCardState bottomCardModel = PhotoBottomCardState.cantFold,
  11. double bottomContentHeight = 150,
  12. 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);
}