Comments (6)
Hi @gastonche, I think you should use a CustomScrollView
with two slivers here:
A SliverPadding
(to replace the Padding
widget)
A SliverStaggeredGrid
(to replace the StaggeredGridView
).
The issue here is because the Column
does not let you to scroll.
from flutter_staggered_grid_view.
i have same issue.
StaggeredGridView.countBuilder(
crossAxisCount: 2,
staggeredTileBuilder: (index) => new StaggeredTile.fit(2),
itemCount: data.results.length,
itemBuilder: (context, index) {
return Card(
color: Colors.transparent,
clipBehavior: Clip.antiAlias,
elevation: 0,
child: ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(10)),
child: Column(
children: <Widget>[
CachedNetworkImage(
imageUrl: data.results[index].image,
),
Container(
color: Colors.white,
padding: EdgeInsets.all(10),
child: Column(
children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Text(
data.results[index].channel.name,
style: TextStyle(
fontSize: 14,
color: Colors.black54,
),
),
Text(
data.results[index].publishDate.toIso8601String(),
style: TextStyle(
fontSize: 14,
color: Colors.black54,
),
)
],
),
Padding(
padding: EdgeInsets.symmetric(vertical: 10),
child: Text(
data.results[index].title,
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 18,
color: Colors.black87),
),
),
Text(
data.results[index].description,
style: TextStyle(
color: Colors.black54,
fontSize: 14,
),
)
],
),
)
],
),
),
);
},
);
from flutter_staggered_grid_view.
StaggeredGridView and SliverStaggeredGrid not scrolling !!!!!!!!
from flutter_staggered_grid_view.
I'm having the same problem but SliverStaggeredGrid.count inside CustomScrollView is not solving my problem. Can you have a look? Reproduce: https://github.com/arutkayb/FlutterMovies/blob/f17c2fb3c85275ccf87f25d89b834dedc5ce13fe/flutter_movies/lib/module/list_movies.dart
from flutter_staggered_grid_view.
Closing as it resolved or will not be fixed in the current version (a new version, completely refactored is on its way).
Let me know If you can test under the feature/renaissance branch, and it's not resolved.
from flutter_staggered_grid_view.
Still can not scrolling....
I am not sure why a popular gridView can not be scrolled default....
from flutter_staggered_grid_view.
Related Issues (20)
- The position state cannot be restored when you use Navigator.of(context).pop(); HOT 2
- 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 HOT 2
- Updated layout information required for RenderIndexedSemantics#7583c NEEDS-LAYOUT to calculate semantics.
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.