Fixed
Status Update
Comments
jn...@google.com <jn...@google.com>
ap...@google.com <ap...@google.com> #2
Hi. Thanks for reporting this. Fixed in alpha-04
No update yet.
Hi. Thanks for reporting this. Fixed in alpha-04
Description
Talking with the UX team about the best defaults to apply for a
ScalingLazyColumnListState
we have agreed to change the defaultinitialCenterItemIndex
from 0 to 1. This means that by default a ScalingLazyColumn will have it 2nd item (index == 1) in the middle of the screen with it's first item (index == 0) above it and visible.This behaviour can easily be overridden by developers by passing
initialCenterItemIndex == 0
torememberScalingLazyListState()
.If there are insufficient items in the list to position item 1 in the center then the actual center item and offset will correctly report the resulting values in the state.