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

When itemCount is zero it executes builder with index 0 #79

Closed
wants to merge 1 commit into from
Closed

When itemCount is zero it executes builder with index 0 #79

wants to merge 1 commit into from

Conversation

vasilich6107
Copy link
Contributor

@vasilich6107 vasilich6107 commented Mar 29, 2020

Description

When itemCount is zero it executes builder with index 0 which is slightly wrong cause there is no items) This PR fixes that unexpected behaviour and adds test for an empty list.

Related Issues

#78

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I signed the CLA.
  • All tests from running flutter test pass.
  • flutter analyze does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

@googlebot googlebot added the cla: yes CLA has been signed by all contributors label Mar 29, 2020
@vasilich6107
Copy link
Contributor Author

@jamesderlin @mehmetf
Could you review this PR?

@tarobins
Copy link
Collaborator

tarobins commented Apr 1, 2020

lgtm

@tarobins tarobins closed this Apr 1, 2020
@tarobins tarobins reopened this Apr 1, 2020
@vasilich6107
Copy link
Contributor Author

I see that tests are failing due to the strange error...
Could you clarify what are the next steps before accepting this PR?

@mehmetf
Copy link
Collaborator

mehmetf commented Apr 2, 2020

@tarobins could you please apply this internally and verify? Once it is submitted to google3, we can push it upstream as well.

jamesderlin pushed a commit that referenced this pull request Apr 2, 2020
…with index 0

When `itemCount` is zero it executes builder with index 0 which is slightly wrong cause there is no items) This PR fixes that unexpected behaviour and adds test for an empty list.

Closes #79

PiperOrigin-RevId: 304429846
@tarobins
Copy link
Collaborator

tarobins commented Apr 2, 2020

@mehmetf @vasilich6107 I believe @jamesderlin is taking care of this issue for us, and you'll see his pr above. Thanks @jamesderlin

jamesderlin pushed a commit that referenced this pull request Apr 2, 2020
…with index 0

When `itemCount` is zero it executes builder with index 0 which is slightly wrong cause there is no items) This PR fixes that unexpected behaviour and adds test for an empty list.

Closes #79

PiperOrigin-RevId: 304429846
@tarobins
Copy link
Collaborator

tarobins commented Apr 2, 2020

thanks @vasilich6107 for the pr

Zony-Zhao pushed a commit to Zony-Zhao/scrollable_positioned_list that referenced this pull request Sep 28, 2020
…with index 0

When `itemCount` is zero it executes builder with index 0 which is slightly wrong cause there is no items) This PR fixes that unexpected behaviour and adds test for an empty list.

Closes google/flutter.widgets#79

PiperOrigin-RevId: 304429846
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes CLA has been signed by all contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants