文本字段在控制台中显示奇怪的日志Flutter

问题描述

当我在我的应用程序中点击 Textfield 时控制台会显示这个

W/IInputConnectionWrapper(10655): getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper(10655): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper(10655): getTextAfterCursor on inactive InputConnection
W/IInputConnectionWrapper(10655): beginBatchEdit on inactive InputConnection
W/IInputConnectionWrapper(10655): endBatchEdit on inactive InputConnection

这是我正在处理的应用程序的 screenshot

解决方法

这是一个已知问题,有很多方法可以尝试修复它,但没有官方方法。

Github 问题:

你可以试试:

,

您是否尝试过使用类似的方法

onChanged()
onFieldSubmitted()
onEditCompleted()