Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下拉刷新的动作会被内部的自动滚动的widget打断 #28

Open
chokNight opened this issue Mar 24, 2022 · 6 comments
Open

下拉刷新的动作会被内部的自动滚动的widget打断 #28

chokNight opened this issue Mar 24, 2022 · 6 comments

Comments

@chokNight
Copy link

当我正在下拉过程中,nestedScrollview的header中有一个自动滚动的banner,如果这时候banner发生了滚动,正在下拉的动作会被取消

@krmao
Copy link

krmao commented Jun 4, 2022

+1

@krmao
Copy link

krmao commented Jun 5, 2022

fina a way to fix @chokNight

NotificationListener(
  child: Container(
    margin: EdgeInsets.only(bottom: 20.r, left: 20.r, right: 20.r),
    alignment: Alignment.center,
    width: 710.w,
    height: 200.w,
    child: ClipRRect(
      borderRadius: BorderRadius.all(Radius.circular(20.r)),
      child: Swiper(
          autoplayDisableOnInteraction: true,
          itemBuilder: (BuildContext context, int index) {
            var itemValue = advertList[index];
            return Image(image: CachedNetworkImageProvider(itemValue["advertPic"]), fit: BoxFit.cover);
          },
          onIndexChanged: (int index) {},
          onTap: (int index) {
            var itemValue = advertList[index];
            if (kDebugMode) {
              print("--> banner onTap($index):" + json.encode(itemValue));
            }
          },
          itemCount: advertList.length,
          duration: 700,
          autoplayDelay: 5000,
          layout: SwiperLayout.DEFAULT,
          autoplay: true),
    ),
  ),
  onNotification: (_notification) {
    return true;
  },
),

@zmtzawqlp
Copy link
Member

这是你外部的组件把事件吃了。可以参考上面小伙伴的办法试试

@ZeroMoment
Copy link

当我正在下拉过程中,nestedScrollview的header中有一个自动滚动的banner,如果这时候banner发生了滚动,正在下拉的动作会被取消

你好,你使用nestedScrollview,有出现自动刷新的问题吗。我用这个刷新组件套nestedScrollview,它每隔十多秒就自动下拉刷新一次,很诡异啊

@zmtzawqlp
Copy link
Member

当我正在下拉过程中,nestedScrollview的header中有一个自动滚动的banner,如果这时候banner发生了滚动,正在下拉的动作会被取消

你好,你使用nestedScrollview,有出现自动刷新的问题吗。我用这个刷新组件套nestedScrollview,它每隔十多秒就自动下拉刷新一次,很诡异啊

很明显不是这个组件的问题呢。你开的issue 连重现 demo 都没有。很难帮你

@ZeroMoment
Copy link

ZeroMoment commented Jun 6, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants