Afzal Najam
03/30/2022, 6:11 PMscrollable
, verticalScroll
, and horizontalScroll
modifiers also have a contentPadding
argument like the Lazy layouts do? Otherwise their children get clipped at the beginning and end if they’re animated to scale even a little bit.Jan Bína
03/30/2022, 7:10 PMModifier.scrollable().padding()
In Lazy lists, you don't apply scrolling modifier yourself, so padding
always sets the outer padding and contentPadding
is needed to set the inner padding. This is not the case with scrollable
and others, where you can do:
Modifier
.padding() //outer
.scrollable()
.padding() //inner
Afzal Najam
03/30/2022, 7:40 PM