ScrollThumbnailWidget constructor
const
ScrollThumbnailWidget({
- Key? key,
- required File videoFile,
- required int videoDuration,
- required double thumbnailHeight,
- required int numberOfThumbnails,
- required BoxFit fit,
- required ScrollController scrollController,
- required VoidCallback onThumbnailLoadingComplete,
- int quality = 75,
Creates a ScrollableThumbnailViewer widget.
videoFileis the video file from which thumbnails are generated.videoDurationis the total duration of the video in milliseconds.thumbnailHeightis the height of each thumbnail.numberOfThumbnailsis the number of thumbnails to generate.fitis how the thumbnails should be inscribed into the allocated space.scrollControlleris the scroll controller for the scrollable thumbnail view.onThumbnailLoadingCompleteis the callback function that is called when thumbnail loading is complete.qualityis the quality of the generated thumbnails, ranging from 0 to 100. Defaults to 75.
Implementation
const ScrollThumbnailWidget({
super.key,
required this.videoFile,
required this.videoDuration,
required this.thumbnailHeight,
required this.numberOfThumbnails,
required this.fit,
required this.scrollController,
required this.onThumbnailLoadingComplete,
this.quality = 75,
});