Browse Source

修改

null_safety
哈哈哈 4 years ago
parent
commit
24519dd1e4
  1. 11
      lib/union/store_details_page.dart
  2. 9
      lib/union/union_details_page.dart

11
lib/union/store_details_page.dart

@ -187,9 +187,14 @@ class _StoreDetailsPage extends State<StoreDetailsPage> {
),
onTap: () {
if (activity != null) {
Navigator.of(context).pushNamed(
'/router/union_detail_page',
arguments: {"id": activity.storeId});
if (widget.arguments["source"] != null
&& widget.arguments["source"] == activity.storeId) {
Navigator.of(context).pop();
} else {
Navigator.of(context).pushNamed(
'/router/union_detail_page',
arguments: {"id": activity.storeId, "source": widget.arguments["activityId"]});
}
}
},
),

9
lib/union/union_details_page.dart

@ -737,8 +737,13 @@ class _UnionDetailsPage extends State<UnionDetailsPage> {
itemBuilder: (context, position) {
return InkWell(
onTap: () {
Navigator.of(context).pushNamed('/router/store_detail_page',
arguments: {"activityId": activitys[position].id});
if (widget.arguments["source"] != null
&& widget.arguments["source"] == activitys[position].id) {
Navigator.of(context).pop();
} else {
Navigator.of(context).pushNamed('/router/store_detail_page',
arguments: {"activityId": activitys[position].id, "source": widget.arguments["id"]});
}
},
child: Container(
margin: EdgeInsets.symmetric(horizontal: 5.w),

Loading…
Cancel
Save