flutter_staggered_grid_view icon indicating copy to clipboard operation
flutter_staggered_grid_view copied to clipboard

Jumping while scrolling

Open rdev-software opened this issue 4 years ago • 8 comments

I have dynamic list of items. Items contain cached image, whilst loading there is circular progress view. Once is loaded, size is changed...some images are bigger than others.

Thing is that i cannot scroll now, as whole layout is broken as every item is different. But I mean thats whole point of staggered grid view

rdev-software avatar Jan 23 '20 02:01 rdev-software

@rdev-software I'm also facing this issue. What Image widget are you using? The image without cache works perfectly tho

sooxt98 avatar Mar 17 '20 16:03 sooxt98

Similar issue here https://github.com/flutter/flutter/issues/42339

sooxt98 avatar Mar 17 '20 17:03 sooxt98

I'm also facing the same issue @letsar any update on this?

pankajadhyapak avatar May 13 '20 19:05 pankajadhyapak

same issue for me

kw2019ltd avatar May 18 '20 13:05 kw2019ltd

Me too. The scrolling somehow jump up and down and sometimes its shaking! Strange.

My code is like this:

StaggeredGridView.builder(
        itemCount: posts.length,
        key: PageStorageKey(widget.pageKey),
        controller: controller,
        itemBuilder: (_, index) => buildPostView(posts[index]),
        gridDelegate: SliverStaggeredGridDelegateWithMaxCrossAxisExtent(
            staggeredTileBuilder: (index) => StaggeredTile.fit(1),
            maxCrossAxisExtent: kMaxPostItemCardWidth),
      ),

I tried also with StaggeredGridView.extentBuilder but it shows the same result.

Any clue?

Thanks

zenkog avatar Aug 20 '20 03:08 zenkog

I have the same issue. Despite I fixed the aspect ratio, when I scroll items jump and the scroll is not smooth. here is my code:

    var width = double.parse(item.width);
    var height = double.parse(item.height);
    return GestureDetector(
        onTap: () {
     
        },
        child: Card(
          semanticContainer: true,
          clipBehavior: Clip.antiAliasWithSaveLayer,
          child: CachedNetworkImage(
            placeholder: (context, url) =>
                AspectRatio(
                    aspectRatio: width / height,
                    child: Center(child: CircularProgressIndicator())),
            imageUrl: url,

          ),
          shape: RoundedRectangleBorder(
            borderRadius: BorderRadius.circular(10.0),
          ),
          elevation: 5,
          margin: EdgeInsets.fromLTRB(3.0, 10.0, 10.0, 10.0),
        ));

zjamshidi avatar Aug 25 '20 17:08 zjamshidi

ANY UPDATE ? This is completely unavailable

sunjianan9900 avatar Mar 17 '22 10:03 sunjianan9900

What is the issue here? Can I have a code sample I could just copy/paste and run?

letsar avatar Jul 10 '22 08:07 letsar

Closing since no response since a while.

letsar avatar Nov 01 '22 10:11 letsar

same issue for me

DiTuStudio avatar Jan 11 '24 04:01 DiTuStudio