最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

flutter - Draggable widget does not work in accessibility mode - Stack Overflow

programmeradmin1浏览0评论

I am developing a simple puzzle app in Flutter. I am using the draggable widget. Normally my code works perfectly (drag and drop is ok). But when accessibility mode is on (talkback) the draggable widget does not work. So the feedback widget does not appear.

The code snippet is as follows:

return ConstrainedBox(
      constraints: BoxConstraints(
        minWidth: width,
        minHeight: height,
        maxWidth: width,
        maxHeight: height,
      ),
      child: Semantics(
        label: number,
        excludeSemantics: true,
        child: Draggable<int>(
          data: i,
          feedback: feedbackWidget(),
          childWhenDragging: childWhenDraggingWidget(),
          child: childWidget(),
        ),
      ),
    );

I don't understand why it doesn't work in accessibility mode. Please share your ideas. Thanks

发布评论

评论列表(0)

  1. 暂无评论