From 90d02166fcbfc0ce765b3f6a893dfe816f122139 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Sun, 7 Feb 2021 18:24:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BE=E5=8C=BA=E8=AF=9D=E9=A2=98=E6=88=91?= =?UTF-8?q?=E7=9A=84=E5=88=97=E8=A1=A8=E7=82=B9=E5=87=BB=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E8=AF=A6=E6=83=85=EF=BC=8Cfix=20multi=20hero=20share=20the=20s?= =?UTF-8?q?ame=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../community_views/topic/topic_community_view.dart | 3 ++- lib/ui/community/community_views/widgets/my_event_card.dart | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/ui/community/community_views/topic/topic_community_view.dart b/lib/ui/community/community_views/topic/topic_community_view.dart index e23df610..5b73c38e 100644 --- a/lib/ui/community/community_views/topic/topic_community_view.dart +++ b/lib/ui/community/community_views/topic/topic_community_view.dart @@ -39,7 +39,8 @@ class TopicCommunityViewState extends State crossAxisAlignment: CrossAxisAlignment.start, children: [ Hero( - tag: "${model.firstImg}_${model.id}", + // tag: "${model.firstImg}_${model.id}", + tag: model.hashCode.toString(), child: Container( clipBehavior: Clip.antiAlias, decoration: BoxDecoration( 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 20391928..581db574 100644 --- a/lib/ui/community/community_views/widgets/my_event_card.dart +++ b/lib/ui/community/community_views/widgets/my_event_card.dart @@ -1,4 +1,5 @@ // Flutter imports: +import 'package:akuCommunity/ui/community/community_views/event_detail_page.dart'; import 'package:flutter/material.dart'; // Package imports: @@ -62,7 +63,9 @@ class MyEventCard extends StatelessWidget { .paddingOnly(left: 32.w, top: isFirst ? 0 : 64.w, bottom: 32.w) : SizedBox(), MaterialButton( - onPressed: () {}, + onPressed: () { + Get.to(EventDetailPage(themeId: model.id)); + }, child: Row( crossAxisAlignment: CrossAxisAlignment.start, children: [