Coder Social home page Coder Social logo

Comments (4)

lianyagang avatar lianyagang commented on July 17, 2024 1

每次滚动之前的组件都会重新加载,轻量化的还好我3个组件,文字,视频,按钮,滑动几次后卡的很呀,我觉得大概问题是重新加载但是没有销毁之前的组件导致的
这两个问题能不能修复一下
希望就是不要重新加载组件,需要的时候自己调用重绘

最近工作有点忙。稍等我空闲后,我优化一波

真没想到,您会这么快回我,我刚刚学 没有能力修改它,我是想实现一个类似多功能轮播,可以有图片视频文字等等,但每次轮播都会重新创建组件对象,是我没有想到的,滚动几次后就卡死了

参考
image
业务上需要自行控制。内部控制的话。基于业务侧,兼容比较麻烦

from flutter_swiper_null_safety.

lianyagang avatar lianyagang commented on July 17, 2024

每次滚动之前的组件都会重新加载,轻量化的还好
我3个组件,文字,视频,按钮,滑动几次后卡的很呀,我觉得大概问题是重新加载但是没有销毁之前的组件导致的

每次滚动组件会重新加载,
不销毁之前的组件

这两个问题能不能修复一下

希望就是不要重新加载组件,需要的时候自己调用重绘

最近工作有点忙。稍等我空闲后,我优化一波

from flutter_swiper_null_safety.

309791679 avatar 309791679 commented on July 17, 2024

每次滚动之前的组件都会重新加载,轻量化的还好我3个组件,文字,视频,按钮,滑动几次后卡的很呀,我觉得大概问题是重新加载但是没有销毁之前的组件导致的

这两个问题能不能修复一下
希望就是不要重新加载组件,需要的时候自己调用重绘

最近工作有点忙。稍等我空闲后,我优化一波

真没想到,您会这么快回我,我刚刚学 没有能力修改它,我是想实现一个类似多功能轮播,可以有图片视频文字等等,但每次轮播都会重新创建组件对象,是我没有想到的,滚动几次后就卡死了

from flutter_swiper_null_safety.

TralyFang avatar TralyFang commented on July 17, 2024

建议使用card_swiper,无缝替换

from flutter_swiper_null_safety.

Related Issues (19)

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.