Answers for "onfocus text field 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

Browse Popular Code Answers by Language