Code Monkey home page Code Monkey logo

Comments (6)

krmao avatar krmao commented on June 4, 2024

+1

from pull_to_refresh_notification.

krmao avatar krmao commented on June 4, 2024

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;
  },
),

from pull_to_refresh_notification.

zmtzawqlp avatar zmtzawqlp commented on June 4, 2024

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

from pull_to_refresh_notification.

ZeroMoment avatar ZeroMoment commented on June 4, 2024

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

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

from pull_to_refresh_notification.

zmtzawqlp avatar zmtzawqlp commented on June 4, 2024

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

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

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

from pull_to_refresh_notification.

ZeroMoment avatar ZeroMoment commented on June 4, 2024

from pull_to_refresh_notification.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.