Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
418 views
in Technique[技术] by (71.8m points)

android - 屏幕的某些部分没有捕捉到手势(例如,滑动,滚动,点击...)(some portion of screen not catching gestures (i.e swipes,scroll,tap…))

some portions of the screen is not working (tested on 2 real devices and an emulator)

(屏幕的某些部分不起作用(在2个真实设备和一个模拟器上进行了测试))

there's no hidden widgets that might catch the gestures silently

(没有隐藏的小部件可能会默默地捕获手势)

i don't even know what to search for now :\

(我什至不知道现在要搜索什么:\)

checked my code but haven't done any wierd custom thing and all widgets are OEM widgets

(检查了我的代码,但未做任何奇怪的自定义操作,所有小部件均为OEM小部件)

illustrated the app here

(在此说明了该应用程序)

any ideas ?

(有任何想法吗 ?)

this is the widget that contains all buttons and widgets that are having the issue :

(这是包含所有有问题的按钮和小部件的小部件:)

ListView.builder(
    padding: EdgeInsets.fromLTRB(7.0, 7.0, 7.0, 7.0),
    controller: _scrollController,
    itemCount: 1,
    scrollDirection: displayWidth > 600 ? Axis.horizontal : Axis.vertical,
    itemBuilder: (context, index) {
      return ListBody(
          mainAxis: displayWidth > 600 ? Axis.horizontal : Axis.vertical,
          children: <Widget>[
            Padding(
              padding: EdgeInsets.fromLTRB(0.0, 5.0, 0.0, 5.0),
            ),
            content_firstCard(displayWidth, displayHeight), // explanation
            Padding(
              padding: EdgeInsets.fromLTRB(
                  0.0,
                  0.0,
                  displayWidth > 600 ? 20.0 : 0.0,
                  displayWidth > 600 ? 0.0 : 20.0),
            ),
            content_secondCard2(displayWidth, displayHeight), // flutter
            Padding(
              padding: EdgeInsets.fromLTRB(
                  0.0,
                  0.0,
                  displayWidth > 600 ? 20.0 : 0.0,
                  displayWidth > 600 ? 0.0 : 20.0),
            ),
            content_thirdCard(displayWidth, displayHeight),
            Padding(
              padding: EdgeInsets.fromLTRB(
                  0.0,
                  0.0,
                  displayWidth > 600 ? 20.0 : 0.0,
                  displayWidth > 600 ? 0.0 : 20.0),
            ),
            content_forthCard(displayWidth, displayHeight),
            Padding(
              padding: EdgeInsets.fromLTRB(
                  0.0,
                  0.0,
                  displayWidth > 600 ? 20.0 : 0.0,
                  displayWidth > 600 ? 0.0 : 20.0),
            ),
          ]);
    });
  ask by Leo Ma translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

there was a hidden text catching gestures

(有一个隐藏的文字捕捉手势)

tried devTools to find it

(尝试devTools来找到它)

opened devTools > clicked on device screen after devTools opened > clicked search button on the bottom left of the screen > clicked the portoin of the screen that wasn't catching the gestures > damn widget showed on devtool's WidgetTree :D

(打开devTools>在打开devTools之后在设备屏幕上单击>单击屏幕左下角的搜索按钮>单击屏幕上未捕获手势的portoin> devtool的WidgetTree上显示的该死的小部件:D)

the image

(图片)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...