-
Notifications
You must be signed in to change notification settings - Fork 458
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
Conversation
@jamesderlin @mehmetf |
lgtm |
I see that tests are failing due to the strange error... |
@tarobins could you please apply this internally and verify? Once it is submitted to google3, we can push it upstream as well. |
…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
@mehmetf @vasilich6107 I believe @jamesderlin is taking care of this issue for us, and you'll see his pr above. Thanks @jamesderlin |
…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
thanks @vasilich6107 for the pr |
…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
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.flutter test
pass.flutter analyze
does not report any problems on my PR.