Comments (4)
每次滚动之前的组件都会重新加载,轻量化的还好我3个组件,文字,视频,按钮,滑动几次后卡的很呀,我觉得大概问题是重新加载但是没有销毁之前的组件导致的
这两个问题能不能修复一下
希望就是不要重新加载组件,需要的时候自己调用重绘最近工作有点忙。稍等我空闲后,我优化一波
真没想到,您会这么快回我,我刚刚学 没有能力修改它,我是想实现一个类似多功能轮播,可以有图片视频文字等等,但每次轮播都会重新创建组件对象,是我没有想到的,滚动几次后就卡死了
参考
业务上需要自行控制。内部控制的话。基于业务侧,兼容比较麻烦
from flutter_swiper_null_safety.
每次滚动之前的组件都会重新加载,轻量化的还好
我3个组件,文字,视频,按钮,滑动几次后卡的很呀,我觉得大概问题是重新加载但是没有销毁之前的组件导致的每次滚动组件会重新加载,
不销毁之前的组件这两个问题能不能修复一下
希望就是不要重新加载组件,需要的时候自己调用重绘
最近工作有点忙。稍等我空闲后,我优化一波
from flutter_swiper_null_safety.
每次滚动之前的组件都会重新加载,轻量化的还好我3个组件,文字,视频,按钮,滑动几次后卡的很呀,我觉得大概问题是重新加载但是没有销毁之前的组件导致的
这两个问题能不能修复一下
希望就是不要重新加载组件,需要的时候自己调用重绘最近工作有点忙。稍等我空闲后,我优化一波
真没想到,您会这么快回我,我刚刚学 没有能力修改它,我是想实现一个类似多功能轮播,可以有图片视频文字等等,但每次轮播都会重新创建组件对象,是我没有想到的,滚动几次后就卡死了
from flutter_swiper_null_safety.
建议使用card_swiper,无缝替换
from flutter_swiper_null_safety.
Related Issues (19)
- autoplay: true 没生效,手动滑动一下才能自动轮播。 HOT 2
- Null check operator used on a null value
- [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Looking up a deactivated widget's ancestor is unsafe. HOT 1
- Slider stopped working for web
- card_swiper EXCEPTION: _CastError was thrown while dispatching notifications for SwiperController HOT 3
- Exception caught by rendering library HOT 2
- swiper在第一次初始化时会快速滑动一段时间再回复正常 HOT 1
- 在flutter3.0中报错WidgetsBinding.instance!.addPostFrameCallback(_onGetSize); HOT 4
- 升能到flutter3.0后提示WidgetsBinding.instance!.addPostFrameCallback(_getSize); HOT 2
- _onGetSize getting called with dirty context HOT 5
- flutter swiper package avoid to swipe to next position, it stay on first
- dependencies HOT 2
- 首次出现无法切换TAB
- 该适配flutter 3.7了
- Null check operator used on a null value
- type 'Null' is not a subtype of type 'double' HOT 6
- 使用DotSwiperPaginationBuilder时m,size和activeSize设置的一样大小,但是视觉上感觉不一样大 HOT 1
- 轮播时重绘组件的问题很致命 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_swiper_null_safety.