Add hero animation to videos
This commit is contained in:
parent
42a1471c58
commit
d042d0dc2e
1 changed files with 5 additions and 1 deletions
|
@ -52,10 +52,14 @@ class _VideoWidgetState extends State<VideoWidget> {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return _videoPlayerController != null &&
|
||||
final content = _videoPlayerController != null &&
|
||||
_videoPlayerController.value.initialized
|
||||
? _getVideoPlayer()
|
||||
: _getLoadingWidget();
|
||||
return Hero(
|
||||
tag: widget.file.generatedId.toString(),
|
||||
child: content,
|
||||
);
|
||||
}
|
||||
|
||||
Widget _getLoadingWidget() {
|
||||
|
|
Loading…
Add table
Reference in a new issue