📜  如何取消焦点文本字段颤动 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:54.310000             🧑  作者: Mango

代码示例5
// Recommended Solution by Flutter Team.
FocusScopeNode currentScope = FocusScope.of(context);
if (!currentScope.hasPrimaryFocus && currentScope.hasFocus) {
  FocusManager.instance.primaryFocus.unfocus();
}