You can wrap the whole scaffold it into the GestureDetector and unFocus the TextField. It allows the user to at least close the Keyboard when tapped on the screen.
GestureDetector(
onTap: () {
FocusManager.instance.primaryFocus?.unfocus();
},
child: Scaffold(),
);