【问题标题】:getSelectedText on inactive InputConnection & getTextAfterCursor on inactive InputConnection problem非活动 InputConnection 上的 getSelectedText 和非活动 InputConnection 上的 getTextAfterCursor 问题
【发布时间】:2022-01-13 17:51:02
【问题描述】:

enter image description here

当我从我的下拉列表中选择时,它会显示以下错误:getSelectedText on inactive InputConnection & getTextAfterCursor on inactive InputConnection issue on flutter

【问题讨论】:

  • 嗨!请用英语发布您的问题,以便每个人都能理解并尝试帮助您。还要仔细检查您的问题以确保格式正确。

标签: flutter flutter-layout


【解决方案1】:

这也发生在我身上,因为另一个函数在相同上下文的背景中运行。但如果它没有给你一个错误,那没关系(就像我的情况一样)。

但如果它给出错误,您只需检查两个或多个函数或构建是否同时运行。

在此处分享完整代码(您的代码只有一部分),以便我们检查。

【讨论】:

    猜你喜欢
    • 2020-11-15
    • 2017-07-24
    • 1970-01-01
    • 2011-12-28
    • 2020-01-10
    • 2013-12-13
    • 1970-01-01
    • 2018-01-31
    相关资源
    最近更新 更多