Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GFItemsCarousel rowcount bigger than images.length #336

Open
ririlya94 opened this issue May 19, 2023 · 0 comments
Open

GFItemsCarousel rowcount bigger than images.length #336

ririlya94 opened this issue May 19, 2023 · 0 comments

Comments

@ririlya94
Copy link

Describe the bug
Currently there is a bug if the row count is bigger than the children itself. The ui is fine but when you start to drag, the ui will flashing faster (it's going left and right very fast) and the it eventually will stop and it will make the offset very weird.

To Reproduce
Steps to reproduce the behavior:

final List<String> imageList = [
  "https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg",
  "https://cdn.pixabay.com/photo/2017/12/13/00/23/christmas-3015776_960_720.jpg",
  "https://cdn.pixabay.com/photo/2019/12/19/10/55/christmas-market-4705877_960_720.jpg",
];

 GFItemsCarousel(
   rowCount: 5,
   children: imageList.map(
     (url) {
      return Container(
        margin: EdgeInsets.all(5.0),
        child: ClipRRect(
        borderRadius: BorderRadius.all(Radius.circular(5.0)),
        child:
          Image.network(url, fit: BoxFit.cover, width: 1000.0),
         ),
      );
     },
   ).toList(),
),

Screenshot_20230520_003750

  1. As per code block above, the row must be higher than the number of children
  2. Based on the screenshot above, the green color box will be initial display. When the user scroll or drag the carousel, the red color box highlighted the bug happened

Expected behavior
Is either disabling the animation or physic scrolling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant