Forum Discussion
tscholze
Jan 17, 2022Iron Contributor
Cannot find import com.microsoft.device.dualscreen.windowstate.WindowState
Hi team, this might be a noob question but I try to get started using Compose, the Surface SDK and your Dev blog post "https://devblogs.microsoft.com/surface-duo/jetpack-compose-navigation-rail/"...
- Jan 18, 2022
tscholze No worries, we welcome all questions 🙂
From the dependencies you included, it looks like you just need to add the version number for the library:
implementation ‘com.microsoft.device.dualscreen:windowstate:1.0.0-alpha1’
And for your NavigationRail question, that component actually comes from the 'androidx.compose.material' library – as long as you have version 1.1.0-alpha01 or later, I believe you should be able to access the component. I tried updating our 'androidx.navigation:navigation-compose’ to version 2.4.0-rc01 and the sample still ran correctly, but let us know if you’re still experiencing issues with using a NavigationRail.
tscholze
Jan 22, 2022Iron Contributor
Yep, my fold, I did not know that the Window Manager is a dependency in its own 🙂