Skip to content

Commit

Permalink
- Refactor: Simplify Pane Structure in OtakuListScreen
Browse files Browse the repository at this point in the history
This commit simplifies the pane structure in `OtakuListScreen` by replacing `AnimatedPanes` with `AnimatedPane` for both the details and list panes.

This change streamlines the layout and improves performance by reducing unnecessary nesting of composables.
  • Loading branch information
jacobrein committed Nov 27, 2024
1 parent c6ef708 commit 79291e5
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,8 @@ fun OtakuListScreen(
)
)

//state.seekBack()

val details: @Composable ThreePaneScaffoldPaneScope.() -> Unit = {
AnimatedPanes(modifier = Modifier.fillMaxSize()) {
AnimatedPane {
AnimatedContent(
targetState = customListViewModel.customItem,
label = "",
Expand Down Expand Up @@ -162,7 +160,7 @@ fun OtakuListScreen(
directive = state.scaffoldDirective,
value = state.scaffoldValue,
listPane = {
AnimatedPanes(modifier = Modifier.fillMaxSize()) {
AnimatedPane {
OtakuListView(
customItem = customListViewModel.customItem,
customLists = viewModel.customLists,
Expand Down

0 comments on commit 79291e5

Please sign in to comment.