PreviewMediaWidget constructor
PreviewMediaWidget({
- Key? key,
- required MediaProvider mediaProvider,
- double? width,
- double? height,
- Future showInteractiveDelegate()?,
- bool useHeroAnimation = true,
- bool useRegistry = false,
- Widget? fallbackWidget,
- List<
PopupMenuEntry> ? contextMenuEntries, - dynamic onContextMenuSelected(
- MediaProvider mediaProvider,
- dynamic entry
Creates a new media preview
Implementation
PreviewMediaWidget({
Key? key,
required this.mediaProvider,
this.width,
this.height,
this.showInteractiveDelegate,
this.useHeroAnimation = true,
this.useRegistry = false,
this.fallbackWidget,
this.contextMenuEntries,
this.onContextMenuSelected,
}) : super(key: key);