【问题标题】:Flutter TextInputType change gives error in FormFlutter TextInputType 更改在表单中给出错误
【发布时间】:2020-04-19 10:37:41
【问题描述】:

在将键盘类型从TextInputType.text 更改为TextInputType.phoneForm 时收到此错误:

W/IInputConnectionWrapper(13712): getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper(13712): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper(13712): getTextAfterCursor on inactive InputConnection

小部件是StatefulWidget

【问题讨论】:

  • 你能显示代码吗?

标签: flutter dart flutter-layout android-textinputlayout


【解决方案1】:

我认为您不能将它们称为错误(或者至少不能破坏错误,因为它们不会使应用程序崩溃)

This long and still open github 上的问题解决了这个问题,似乎没有办法阻止这些由清除 TextField 引起的警告(直到现在) p>

【讨论】:

    猜你喜欢
    • 2019-01-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-03
    相关资源
    最近更新 更多