flutter 点击空白处收回软键盘
2020-12-10 本文已影响0人
Albert新荣
body: GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: () {
// 触摸收起键盘
FocusScope.of(context).requestFocus(FocusNode());
},
child: ...
)