Comments (2)
Flutter 版本:3.1.0
我用来包装一个
easy_refresh: ^3.3.2+2
flutter_staggered_grid_view: ^0.7.0
这样当我向下滑动以加载新内容时,我单击
Navigator.push( context, MaterialPageRoute( builder: (context) =>
,则当您返回时,上一页的位置信息将丢失
Navigator.of(context).pop();
b39c0d315cb5cb8d0aec557b58bbd4f4.mp4
您这个问题应该不是该组件的原因,而是你列表页面需要添加AutomaticKeepAliveClientMixin
from flutter_staggered_grid_view.
Flutter 版本:3.1.0
我用来包装一个easy_refresh: ^3.3.2+2
flutter_staggered_grid_view: ^0.7.0
这样当我向下滑动以加载新内容时,我单击Navigator.push( context, MaterialPageRoute( builder: (context) =>
,则当您返回时,上一页的位置信息将丢失
Navigator.of(context).pop();
b39c0d315cb5cb8d0aec557b58bbd4f4.mp4您这个问题应该不是该组件的原因,而是你列表页面需要添加AutomaticKeepAliveClientMixin
我列表里面添加了AutomaticKeepAliveClientMixin,我认为即使没有添加AutomaticKeepAliveClientMixin,在pop出来之后,依然会保存有context的内容,这个方案在我其他页面没有使用该组件,但是其他保持一致的情况下(同样使用AutomaticKeepAliveClientMixin和Navigator.of(context).pop()以及easy_refresh)得到了印证,我觉得是当前的组件在load几次之后让滑动位置丢失或者错乱了
from flutter_staggered_grid_view.
Related Issues (20)
- MasonryGridView.builder is still scrolling after being given Neverscrollablescrollphysics
- Problems when scrolling up
- Document SliverAlignedGrid and SliverMasonryGrid
- Wrap like effect with fixed width and height for children
- SliverMasonryGrid.extent scroll up jank
- readme, examples out of date
- BorderRadius Issue HOT 1
- Rename `examples` back to `example`
- Scroll to specify wiget ?
- scrolling issues with two SliverMasonryGrid.count in the same CustomScrollView HOT 4
- staggered grid view rendering issue
- Masonry Separator? HOT 2
- Scrolling issue with two SliverMasonryGrid in CustomScrollView HOT 13
- `MasonryGridView.custom` doesn't handle `findChildIndexCallback` properly HOT 1
- Images are getting chopped,if we make the image to cover the tile.
- Tile alignment when first row is not filled.
- Can't use `StaggeredGrid.custom` since `StaggeredGridDelegate` is not accessible through library `flutter_staggered_grid_view`.
- Null error when scrolling back to the top
- Scroll position not preserved when switching tabs
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_staggered_grid_view.