📅  最后修改于: 2022-03-11 14:56:54.310000             🧑  作者: Mango
// Recommended Solution by Flutter Team.
FocusScopeNode currentScope = FocusScope.of(context);
if (!currentScope.hasPrimaryFocus && currentScope.hasFocus) {
FocusManager.instance.primaryFocus.unfocus();
}