How can I extract data from Modifier? I am making ...
# compose
c
How can I extract data from Modifier? I am making a scroll composable function and I'd like to manipulate the padding behavior because when it has padding, the scrollbar is also applied and the UI looks ugly. And also, I'd like to give additional padding, let's say
innerPadding()
, I'd like to extract only the innerPadding data and use the value to child components so that it won't apply to the parent but only children. Here's my current project. https://github.com/chanjungkim/compose
l
How can I extract data from Modifier?
You can but shouldn't. Modifiers should be one-way data (except for inspection).
c
Yes, I know. So, how would you solve this problem?