You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear everyone,
I have a MasonryGridView.count with a infinite scroll, but when the screen begins with few items, the scroll not work. Why?
Flutter 3.13.0
flutter_staggered_grid_view: ^0.7.0
@override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.symmetric(horizontal: 10), child: MasonryGridView.count( controller: scrollController, scrollDirection: Axis.vertical, physics: const BouncingScrollPhysics(), itemCount: widget.movies.length, crossAxisCount: 3, mainAxisSpacing: 10, crossAxisSpacing: 10, itemBuilder: (context, index) { if (index == 1) { return Column( children: [ const SizedBox( height: 40, ), MoviePosterLink(movie: widget.movies[index]) ], ); } return MoviePosterLink(movie: widget.movies[index]); }, ), ); }
Beta Was this translation helpful? Give feedback.
All reactions