Answers for "when focus and unfocus textfield flutter"

2

flutter unfocus textfield

FocusScope.of(context).unfocus();
Posted by: Guest on October-12-2020
0

flutter unfocus textfield

FocusScopeNode currentFocus = FocusScope.of(context);

if (!currentFocus.hasPrimaryFocus) {
currentFocus.unfocus();
}
Posted by: Guest on March-21-2021

Code answers related to "when focus and unfocus textfield flutter"

Browse Popular Code Answers by Language