Couldn't get NavigableSupportingPaneScaffold to wo...
# compose
k
Couldn't get NavigableSupportingPaneScaffold to work., Argument type mismatch Example: https://developer.android.com/develop/ui/compose/layouts/adaptive/build-a-supporting-pane-layout
Copy code
@OptIn(ExperimentalMaterial3AdaptiveApi::class)
@Composable
@Preview
fun SampleNavigableSupportingPaneScaffoldFull() {
    val scaffoldNavigator: ThreePaneScaffoldNavigator<Nothing> = rememberSupportingPaneScaffoldNavigator()
    val scope = rememberCoroutineScope()

    NavigableSupportingPaneScaffold(
        navigator = scaffoldNavigator,	// error: Argument type mismatch: actual type is 'androidx.compose.material3.adaptive.navigation.ThreePaneScaffoldNavigator<kotlin.Nothing>', but 'androidx.compose.material3.adaptive.navigation.ThreePaneScaffoldNavigator<kotlin.Any>' was expected.
        mainPane = {
            AnimatedPane(
                modifier = Modifier
                    .safeContentPadding()
                    .background(Color.Red)
            ) {
...