Skip to content

Conversation

@MritunjayTiwari14
Copy link

@MritunjayTiwari14 MritunjayTiwari14 commented Oct 30, 2025

Fixes #1953.

The Scale down and Scale up as well as Ink Splash animation occurs after a finite delay of 100ms. Mainly due to GestureDetector used inside AnimatedScaleOnTap.

This can be fixed by using Listener hence replacing the GestureDetector inside AnimatedScaleOnTap.

Discussion: #mobile > issue in responsiveness of home bottom navbar icons
Design: Figma Design

Comparison Through Video of Fix-up

Before

implementation.mp4

After

fixup.mp4

@gnprice gnprice added the maintainer review PR ready for review by Zulip maintainers label Oct 30, 2025
Fixes zulip#1953.
Latter provides instant scaleDown animation on tap,
unlike GestureDetector which has a `kPressTimeOut` causing
delay of 100ms
    https://main-api.flutter.dev/flutter/gestures/kPressTimeout-constant.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer review PR ready for review by Zulip maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

button: Delayed tap feedback on bottom nav and menu buttons

2 participants