Fix the hero tag in videos

This commit is contained in:
Vishnu Mohandas 2020-06-24 00:34:28 +05:30
parent cd32098360
commit 46ea30c4fd

View file

@ -57,7 +57,7 @@ class _VideoWidgetState extends State<VideoWidget> {
? _getVideoPlayer()
: _getLoadingWidget();
return Hero(
tag: widget.file.generatedId.toString(),
tag: widget.file.heroTag(),
child: content,
);
}