unfocus textfield flutter on button click code example Example: flutter unfocus textfield FocusScope.of(context).unfocus();