79811896

Date: 2025-11-07 01:06:15
Score: 2
Natty:
Report link

After reviewing my code, I realize that I had an unused parent widget which was causing the issue.

GestureDetector(
    onTap: () => FocusScope.of(context).unfocus(),
    ...
        // GoogleSignInButton() is placed as a children of GestureDetector
    ...
)

By removing the GestureDetector, it no longer rebuilds on tapping/unfocus, thus the twitching is gone! Thank you @Niyam Prassanna Kunder for the heads up.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • User mentioned (1): @Niyam
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Cubelated