79521431

Date: 2025-03-19 21:33:49
Score: 0.5
Natty:
Report link

if a user presses a button too fast by navigation screens, the error can appear.

my solution was to disable the button after the first press

bool buttonsafe = true
...
onPressed: buttonsafe ?  _submit : null,
...
_submit:
 setState(() {
        buttonsafe = false;
      });
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: AlexF1