Fixed
Status Update
Comments
jn...@google.com <jn...@google.com>
ap...@google.com <ap...@google.com> #2
A couple of questions:
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
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.