|
|
|
@ -28,10 +28,8 @@ import androidx.compose.material3.NavigationRail
|
|
|
|
|
import androidx.compose.material3.NavigationRailItem
|
|
|
|
|
import androidx.compose.material3.NavigationRailItemDefaults
|
|
|
|
|
import androidx.compose.material3.Text
|
|
|
|
|
import androidx.compose.material3.adaptive.ExperimentalMaterial3AdaptiveApi
|
|
|
|
|
import androidx.compose.material3.adaptive.WindowAdaptiveInfo
|
|
|
|
|
import androidx.compose.material3.adaptive.currentWindowAdaptiveInfo
|
|
|
|
|
import androidx.compose.material3.adaptive.navigationsuite.ExperimentalMaterial3AdaptiveNavigationSuiteApi
|
|
|
|
|
import androidx.compose.material3.adaptive.navigationsuite.NavigationSuiteDefaults
|
|
|
|
|
import androidx.compose.material3.adaptive.navigationsuite.NavigationSuiteItemColors
|
|
|
|
|
import androidx.compose.material3.adaptive.navigationsuite.NavigationSuiteScaffold
|
|
|
|
@ -184,10 +182,6 @@ fun NiaNavigationRail(
|
|
|
|
|
* @param windowAdaptiveInfo The window adaptive info.
|
|
|
|
|
* @param content The app content inside the scaffold.
|
|
|
|
|
*/
|
|
|
|
|
@OptIn(
|
|
|
|
|
ExperimentalMaterial3AdaptiveNavigationSuiteApi::class,
|
|
|
|
|
ExperimentalMaterial3AdaptiveApi::class,
|
|
|
|
|
)
|
|
|
|
|
@Composable
|
|
|
|
|
fun NiaNavigationSuiteScaffold(
|
|
|
|
|
navigationSuiteItems: NiaNavigationSuiteScope.() -> Unit,
|
|
|
|
@ -242,7 +236,6 @@ fun NiaNavigationSuiteScaffold(
|
|
|
|
|
/**
|
|
|
|
|
* A wrapper around [NavigationSuiteScope] to declare navigation items.
|
|
|
|
|
*/
|
|
|
|
|
@OptIn(ExperimentalMaterial3AdaptiveNavigationSuiteApi::class)
|
|
|
|
|
class NiaNavigationSuiteScope internal constructor(
|
|
|
|
|
private val navigationSuiteScope: NavigationSuiteScope,
|
|
|
|
|
private val navigationSuiteItemColors: NavigationSuiteItemColors,
|
|
|
|
|