Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

GFItemsCarousel rowcount bigger than images.length

Open
#336 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
dart, flutter

Research direction

Start by reproducing GFItemsCarousel with rowCount set to 5 and three children, then inspect the GFItemsCarousel implementation and its drag or scrolling behavior. Done means dragging this configuration no longer causes rapid flashing or leaves the carousel with an incorrect offset, while the expected scrolling behavior is preserved.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Dart
Stars
4.8k
Forks
649
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ionicfirebaseapp/getwidget

All issues in ionicfirebaseapp/getwidget

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.