ModalDrawerSheet

模态导航抽屉的内容部分。

这个组件定义了抽屉的视觉外观,应被放置在 ModalNavigationDrawerdrawerContent 插槽中。

Author

M8Test, [email protected], https://m8test.com

See also

androidx.compose.material3.ModalDrawerSheet

Functions

Link copied to clipboard
abstract fun DisposableEffect(disposableEffectBuilder: DisposableEffect.() -> Unit)
Link copied to clipboard
Link copied to clipboard
abstract fun <V> getCompositionLocalValue(compositionLocal: ProvidableCompositionLocal<V>): V?

获取 compositionLocal 的值

Link copied to clipboard
abstract fun getContext(): ScriptContext

获取脚本上下文对象 ScriptContext.

Link copied to clipboard
abstract fun LaunchedEffect(launchedEffectBuilder: LaunchedEffect.() -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun setContent(slotBuilder: ColumnScopeSlot.() -> Unit)

设置将在抽屉内部显示的内容。

Link copied to clipboard
abstract fun setDrawerContainerColor(colorBuilder: Color.() -> Unit)

设置此抽屉背景的颜色。

Link copied to clipboard
abstract fun setDrawerContentColor(colorBuilder: Color.() -> Unit)

设置此抽屉内部内容的首选颜色。

Link copied to clipboard
abstract fun setDrawerShape(shapeBuilder: (Shapes) -> Shape)

设置此抽屉容器的形状。

Link copied to clipboard
abstract fun setDrawerTonalElevation(value: (Dimensions) -> Dp)

设置当容器颜色为 Surface 时应用的色调高程。

Link copied to clipboard
abstract fun setModifier(modifierBuilder: T.() -> Unit)
Link copied to clipboard
abstract fun setVisible(visible: Boolean)

设置显示/隐藏当前 Composable

Link copied to clipboard
abstract fun SideEffect(sideEffectBuilder: SideEffect.() -> Unit)
Link copied to clipboard

设置所有需要用到的聚合状态,例如 DrawerState, BottomSheetState 等

Link copied to clipboard
abstract fun trackSingleState(state: SingleState)

添加当前 Composable 需要监听的状态,如果状态改变的话 Composable 会重组