Skip to content

Commit

Permalink
fix: improve tap gesture detection on post/article cells (#490)
Browse files Browse the repository at this point in the history
## Description
<!-- Briefly explain the purpose of this PR and what it accomplishes.
-->

## Additional Notes
<!-- Add any extra context or relevant information here. -->

## Type of Change
- [x] Bug fix
- [ ] New feature
- [ ] Breaking change
- [ ] Refactoring
- [ ] Documentation
- [ ] Chore

## Screenshots (if applicable)
<!-- Include screenshots to demonstrate any UI changes. -->
<!-- <img width="180" alt="image" src="image_url_here"> -->
  • Loading branch information
ice-ajax authored Dec 31, 2024
1 parent dcc5886 commit f878b42
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class ArticleListItem extends ConsumerWidget {
return Padding(
padding: EdgeInsets.symmetric(vertical: 12.0.s),
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () =>
ArticleDetailsRoute(eventReference: eventReference.toString()).push<void>(context),
child: Article(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class GenericRepostListItem extends StatelessWidget {
return GestureDetector(
onTap: () =>
ArticleDetailsRoute(eventReference: eventReference.toString()).push<void>(context),
behavior: HitTestBehavior.opaque,
child: ScreenSideOffset.small(
child: Column(
children: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class PostListItem extends StatelessWidget {

return GestureDetector(
onTap: () => PostDetailsRoute(eventReference: eventReference.toString()).push<void>(context),
behavior: HitTestBehavior.opaque,
child: ScreenSideOffset.small(
child: Post(eventReference: eventReference, showParent: showParent),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class RepostListItem extends StatelessWidget {

return GestureDetector(
onTap: () => PostDetailsRoute(eventReference: eventReference.toString()).push<void>(context),
behavior: HitTestBehavior.opaque,
child: ScreenSideOffset.small(
child: Column(
children: [
Expand Down

0 comments on commit f878b42

Please sign in to comment.