```val currentWindowAdaptiveInfo = currentWindowAd...
# multiplatform
m
Copy code
val currentWindowAdaptiveInfo = currentWindowAdaptiveInfo()
is not import in common main cmp project it any issue?
c
whats your
import
?
m
Copy code
commonMain.dependencies {
    implementation(compose.runtime)
    implementation(compose.foundation)
    implementation(compose.ui)
    implementation(compose.components.resources)
    implementation(compose.components.uiToolingPreview)

    // Material
    implementation(compose.material3)
    implementation(compose.materialIconsExtended)    implementation(compose.material3AdaptiveNavigationSuite)
}
c
have you tries importing it yourself?
also its part of the
androidx.compose.material3.adaptive:adaptive
package. try to add this dependency as well next to the
navigation suite
m
image.png,image.png
c
well, you have to imports of the same name. delete one 😅
m
yes i know but not work
m
i one by one import try it but not work
c
not import, add the dependency to the library.
which version of the adaptive library are you using? maybe the CMP version is part of the current alpha release.
m
Copy code
composeMultiplatform = "1.8.1"
c
adaptive has its own version.
m
let me try it
good look, I’m out of ideas.
m
ok
c
one last one: did you try to build the app, to get sure its not just an IDE quirks?
m
i already try it not work
👍🏻 1
i waiting someone answer
Copy code
implementation("org.jetbrains.compose.material3.adaptive:adaptive:1.1.1")
i try this library work it android and desktop
but ios not work it 😆
i think it issue
done solve it
Copy code
// Material
implementation(compose.material3)
implementation(compose.materialIconsExtended)
implementation(compose.material3AdaptiveNavigationSuite)
implementation(libs.material3.adaptive)

// Navigation
implementation(libs.androidx.navigation.compose)
Copy code
adaptive = "1.1.1"
navigationCompose = "2.9.0-alpha17"
composeMultiplatform = "1.8.1"

material3-adaptive = { module = "org.jetbrains.compose.material3.adaptive:adaptive", version.ref = "adaptive" }
androidx-navigation-compose = { module = "org.jetbrains.androidx.navigation:navigation-compose", version.ref = "navigationCompose" }
thanks