Flutter 之点击空白处取消TextField焦点 - - SegmentFault 思否
{代码...} 注:一定要放到最外层

在Scaffold容器child的最外层添加:

GestureDetector(
    behavior: HitTestBehavior.translucent,
    onTap: () {
        // 触摸收起键盘
        FocusScope.of(context).requestFocus(FocusNode());
    },
    child: *******
}