社区话题我的列表点击查看详情,fix multi hero share the same tag

hmxc
小赖 4 years ago
parent 078eb71d91
commit 90d02166fc

@ -39,7 +39,8 @@ class TopicCommunityViewState extends State<TopicCommunityView>
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(

@ -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: [

Loading…
Cancel
Save