how to disable button after first click?

129 views
Skip to first unread message

Bhanuka Isuru

unread,
Mar 21, 2019, 2:53:36 AM3/21/19
to Flutter Dev
how to disable the button after the first click? 
But in the login page, users type username incorrectly in the first time and second time user cant click second time also, how to fix this?
 onPressed: () async {
 
if (_firstClick) {
_firstClick
= false;
(isOffline)
? _showSnackBar()
: checking2(usernameController, context, _url);
}

full question and full code,
EIFhm.gif
Reply all
Reply to author
Forward
0 new messages