We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'm using voyager with compose-multiplatform 1.6.11 and I'm having an issue with the dark theme switching, codes like this:
voyager
1.6.11
setContent { var isNight by remember { mutableStateOf(false) } SwitchthemeinnestednavigatorTheme(isNight) { Navigator(HiddenScreen) { Navigator(HiddenScreen) { // ✅ if hide this line Scaffold { innerPadding -> ... } } } } }
implementation(compose.material3) // same with 1.2.1 🚫 // implementation("androidx.compose.material3:material3:1.1.2") // ✅ // implementation("androidx.compose.material3:material3:1.2.0") // 🚫 // implementation("androidx.compose.material3:material3:1.2.1") // 🚫 // implementation("androidx.compose.material3:material3:1.3.0") // 🚫
Nested Navigator will cause the dark theme to not switch, currently, I found two workaround:
remove nested navigator.
downgrade compose-md3 to 1.1.0+.
But I haven't found the real reason yet and need to ask for help.
demo: https://github.com/qdsfdhvh/switch-theme-in-nested-navigator
The text was updated successfully, but these errors were encountered:
This may be related to #486 and #484, seems like the newest versions of compose partially break nested navigation in voyager.
Sorry, something went wrong.
This is an issue with Compose Multiplatform.
I've opened a workaround PR for Voyager.
No branches or pull requests
Hi, I'm using
voyager
with compose-multiplatform1.6.11
and I'm having an issue with the dark theme switching, codes like this:Nested Navigator will cause the dark theme to not switch, currently, I found two workaround:
remove nested navigator.
downgrade compose-md3 to 1.1.0+.
But I haven't found the real reason yet and need to ask for help.
demo: https://github.com/qdsfdhvh/switch-theme-in-nested-navigator
The text was updated successfully, but these errors were encountered: