From bee4fe33874e6ae42352217790ebb0e73d33a5d6 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Thu, 1 Apr 2021 16:23:59 +0800 Subject: [PATCH] fix multi hero share the same tag --- .../widgets/my_event_card.dart | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/lib/ui/community/community_views/widgets/my_event_card.dart b/lib/ui/community/community_views/widgets/my_event_card.dart index 4b64f147..01228ff8 100644 --- a/lib/ui/community/community_views/widgets/my_event_card.dart +++ b/lib/ui/community/community_views/widgets/my_event_card.dart @@ -82,21 +82,18 @@ class MyEventCard extends StatelessWidget { tag: ImgModel.first(model.imgUrl), ); }, - child: Hero( - tag: ImgModel.first(model.imgUrl), - child: Container( - clipBehavior: Clip.antiAlias, - decoration: BoxDecoration( - color: Colors.black12, - borderRadius: BorderRadius.circular(8.w), - ), - child: FadeInImage.assetNetwork( - placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, - image: API.image(ImgModel.first(model.imgUrl)), - width: 152.w, - height: 152.w, - fit: BoxFit.cover, - ), + child: Container( + clipBehavior: Clip.antiAlias, + decoration: BoxDecoration( + color: Colors.black12, + borderRadius: BorderRadius.circular(8.w), + ), + child: FadeInImage.assetNetwork( + placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, + image: API.image(ImgModel.first(model.imgUrl)), + width: 152.w, + height: 152.w, + fit: BoxFit.cover, ), ), ),