When using a <supporting pane layout> how can I de...
# compose
j
When using a supporting pane layout how can I determine if the supporting pane is currently visible? I want to display a button to navigate to the supporting pane if it is not already expanded. I tried accessing
navigator.scaffoldState.currentState.secondary
but it is always hidden, even tho the support pane is expanded or the main content atm. Context: I am using CMP | adaptive versions: 1.2.0-beta01
1
I found my issue, I have to check the value not the state:
Copy code
navigator.scaffoldValue.secondary == PaneAdaptedValue.Hidden
Thx https://touchlab.co/adaptive-layouts-cmp
j
Are you using
NavigableSupportingPaneScaffold
or
SupportingPaneScaffold
in CMP?
j
Atm
SupportingPaneScaffold
as I copied it from an example. Also saw the Navigable one but have not read up on the differences yet. Do you mean thats also an issue?
Just saw that the Navigable one is Android only.