Skip to content

Commit bc4ad93

Browse files
committed
clickable tags on commentsdetails
1 parent 0910401 commit bc4ad93

File tree

1 file changed

+9
-0
lines changed
  • lib/features/threads/presentation/comments/comment_detail/widgets

1 file changed

+9
-0
lines changed

lib/features/threads/presentation/comments/comment_detail/widgets/tag_scroll.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import 'package:flutter/material.dart';
2+
import 'package:go_router/go_router.dart';
23
import 'package:waves/core/common/widgets/text_box.dart';
4+
import 'package:waves/core/routes/route_keys.dart';
5+
import 'package:waves/core/routes/routes.dart';
36

47
class TagScroll extends StatelessWidget {
58
const TagScroll({super.key, required this.tags});
@@ -24,6 +27,12 @@ class TagScroll extends StatelessWidget {
2427
const EdgeInsets.symmetric(horizontal: 10, vertical: 4),
2528
backgroundColor: theme.colorScheme.tertiary,
2629
text: tag,
30+
onTap: () {
31+
context.pushNamed(
32+
Routes.tagFeedView,
33+
queryParameters: {RouteKeys.tag: tag},
34+
);
35+
},
2736
),
2837
);
2938
}),

0 commit comments

Comments
 (0)