StreamPhotoGallery constructor
const
StreamPhotoGallery({
- Key? key,
- required StreamPhotoGalleryController controller,
- SliverGridDelegate gridDelegate = defaultStreamPhotoGalleryDelegate,
- StreamPhotoGalleryIndexedWidgetBuilder? itemBuilder,
- WidgetBuilder? emptyBuilder,
- PagedValueScrollViewLoadMoreErrorBuilder? loadMoreErrorBuilder,
- WidgetBuilder? loadMoreIndicatorBuilder,
- WidgetBuilder? loadingBuilder,
- Widget errorBuilder()?,
- void onMediaTap(
- AssetEntity
- void onMediaLongPress(
- AssetEntity
- int loadMoreTriggerIndex = 3,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollController? scrollController,
- bool? primary,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- EdgeInsetsGeometry? padding,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- double? cacheExtent,
- int? semanticChildCount,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
- ThumbnailSize thumbnailSize = const ThumbnailSize(400, 400),
- ThumbnailFormat thumbnailFormat = ThumbnailFormat.jpeg,
- int thumbnailQuality = 100,
- double thumbnailScale = 1,
Creates a StreamPhotoGallery widget.
Implementation
const StreamPhotoGallery({
super.key,
required this.controller,
this.gridDelegate = defaultStreamPhotoGalleryDelegate,
this.itemBuilder,
this.emptyBuilder,
this.loadMoreErrorBuilder,
this.loadMoreIndicatorBuilder,
this.loadingBuilder,
this.errorBuilder,
this.onMediaTap,
this.onMediaLongPress,
this.loadMoreTriggerIndex = 3,
this.scrollDirection = Axis.vertical,
this.reverse = false,
this.scrollController,
this.primary,
this.physics,
this.shrinkWrap = false,
this.padding,
this.addAutomaticKeepAlives = true,
this.addRepaintBoundaries = true,
this.addSemanticIndexes = true,
this.cacheExtent,
this.semanticChildCount,
this.dragStartBehavior = DragStartBehavior.start,
this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
this.restorationId,
this.clipBehavior = Clip.hardEdge,
this.thumbnailSize = const ThumbnailSize(400, 400),
this.thumbnailFormat = ThumbnailFormat.jpeg,
this.thumbnailQuality = 100,
this.thumbnailScale = 1,
});