InputDecoration

@Stable
interface InputDecoration

输入框装饰

可以为输入框提供自定义的前导或后导装饰组件 提供如图标、文本、长度查看器等默认装饰器

Inheritors

Types

Link copied to clipboard
@Stable
class Icon(icon: (InputState) -> ImageVector, color: (InputState) -> Color? = { null }, visible: (InputState) -> Boolean = { true }, enabled: (InputState) -> Boolean = { true }, onClick: (InputState) -> Unit? = null) : InputDecoration

图标装饰

Link copied to clipboard

长度查看器装饰

Link copied to clipboard

Properties

Link copied to clipboard
abstract val alignment: Alignment.Vertical

Functions

Link copied to clipboard
@Composable
abstract fun Content(state: InputState)