Closed arkivanov closed 22 hours ago
The pull request introduces significant modifications to the ChildPanels
function across multiple overloads, primarily changing the function signatures from using Function3
parameters to Function2
parameters. Additionally, new optional parameters have been added to enhance the functionality of the ChildPanels
method, particularly regarding placeholder handling for empty states. The changes also include updates to related classes and interfaces, ensuring a more robust design for managing child panels and animations within the Compose framework.
File Path | Change Summary |
---|---|
extensions-compose-experimental/api/android/extensions-compose-experimental.api | Updated ChildPanels function signatures to replace Function3 parameters with Function2 . Added optional parameters to enhance flexibility in child panel configurations. |
extensions-compose-experimental/api/extensions-compose-experimental.klib.api | Modified ChildPanels and stackAnimation function signatures to include new optional parameters of type Function2 . Enhanced the StackAnimator interface for better animation handling. |
extensions-compose-experimental/api/jvm/extensions-compose-experimental.api | Changed ChildPanels function signatures to replace Function3 with Function2 . Updated ComposableSingletons$ChildPanelsKt class fields and added new lambda fields. Updated ChildPanelsLayout interface method signature. |
extensions-compose-experimental/src/commonMain/kotlin/com/arkivanov/decompose/extensions/compose/experimental/panels/ChildPanels.kt | Introduced new secondPanelPlaceholder and thirdPanelPlaceholder parameters in multiple ChildPanels overloads to handle empty states. Updated parameter documentation for clarity. |
sample/shared/compose/src/commonMain/kotlin/com/arkivanov/sample/shared/multipane/MultiPaneContent.kt | Added a new composable placeholder for the second panel in MultiPaneContent , enhancing the user interface when no article is selected. |
ChildPanels
function signatures, specifically updating parameter types from Function3
to Function2
, which aligns with the changes made in the main PR regarding the ChildPanels
method signatures.🐰 In the land of code where panels play,
New placeholders bloom, brightening the day.
Functions transformed, simpler and neat,
WithFunction2
now taking the seat.
So hop along, let the UI shine,
In this joyful patch, all is divine! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
secondPanelPlaceholder
andthirdPanelPlaceholder
parameters in theChildPanels
function to display placeholders when respective panels are empty.MultiPaneContent
function with a new composable placeholder for the second panel, providing a visual cue when no article is selected.Bug Fixes
ChildPanels
component, ensuring a responsive user interface.Documentation
ChildPanels
function for clarity on their usage and behavior.