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