Replies: 1 comment
-
And another question about SplitPane. It does not seem to be possible to set the splitter position to a given value. I need to be able to show/hide side pannel depending on the state. And I would like to be able to set position to a specific value. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see that line:
https://github.com/JetBrains/compose-jb/blob/854de3681cb340ed0ad4912382f7d27b42a5518f/components/SplitPane/library/src/commonMain/kotlin/org/jetbrains/compose/splitpane/SplitPaneDSL.kt#L178
And it seems like a bad design decision for me. Those functions could bloat the global namespace, which is not good for a library. I propose to move it to a Companion of
SplitPaneState
likeSplitPaneState.remember
or call itfun SplitPaneState
as a fake constructor.Beta Was this translation helpful? Give feedback.
All reactions