I am collecting user input with a TextFormField and when the user presses a FloatingActionButton indicating they are done, I want to dismiss the on
TextFormField
FloatingActionButton
This may simplify the case. Below code will work only if keyboard is open
if(FocusScope.of(context).isFirstFocus) { FocusScope.of(context).requestFocus(new FocusNode()); }