Browse Source

文章热门跳转更改

ff_new
w-R 3 years ago
parent
commit
64172118c4
  1. 8
      lib/community/headlines/activity_top_list.dart

8
lib/community/headlines/activity_top_list.dart

@ -47,9 +47,11 @@ class _ActivityTopList extends State<ActivityTopList> {
itemBuilder: (context, position) { itemBuilder: (context, position) {
return GestureDetector( return GestureDetector(
onTap: () { onTap: () {
Navigator.of(context).pushNamed( Navigator.of(context).pushNamed('/router/web_page',
'/router/headlines_column_details', arguments: {"articleId": widget.articleTop[position].id});
arguments: {"id": widget.articleTop[position].id}); widget.articleTop[position].viewers =
(widget.articleTop[position].viewers + 1);
setState(() {});
}, },
child: headlinesCollectionItem(widget.articleTop[position], position), child: headlinesCollectionItem(widget.articleTop[position], position),
); );

Loading…
Cancel
Save