fix: 视频详情页hero

This commit is contained in:
guozhigq
2023-06-17 13:14:50 +08:00
parent 0878e2be45
commit e5970689a9

View File

@ -162,7 +162,9 @@ class _VideoDetailPageState extends State<VideoDetailPage>
double maxHeight = boxConstraints.maxHeight;
// double PR =
// MediaQuery.of(context).devicePixelRatio;
return Stack(
return Hero(
tag: videoDetailController.heroTag,
child: Stack(
children: [
AspectRatio(
aspectRatio: 16 / 9,
@ -207,8 +209,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
top: 0,
left: 0,
right: 0,
child: Hero(
tag: videoDetailController.heroTag,
child: NetworkImgLayer(
type: 'emote',
src: videoDetailController
@ -218,8 +218,8 @@ class _VideoDetailPageState extends State<VideoDetailPage>
),
),
),
),
],
),
);
},
),