FieldDefaults
object FieldDefaults
Properties
Functions
Link copied to clipboard
fun buttonFieldAppearance(buttonStyle: ButtonFieldAppearance.ButtonStyle = ButtonFieldAppearance.ButtonStyle.BUTTON, buttonColors: ButtonColors? = null, textStyle: TextStyle? = null, padding: PaddingValues? = null, horizontalArrangement: Arrangement.Horizontal = Arrangement.End, verticalAlignment: Alignment.Vertical = Alignment.Top, width: ButtonFieldAppearance.ButtonWidth = ButtonFieldAppearance.ButtonWidth.WRAP_CONTENT, shape: Shape? = null, icon: PainterRes? = null, iconSize: DpSize = DpSize(width = 24.dp, height = 24.dp), spacerWidth: Dp = 8.dp): ButtonFieldAppearance
Link copied to clipboard
fun fieldColors(textColor: Color = MaterialTheme.colorScheme.onSurface, disabledTextColor: Color = MaterialTheme.colorScheme.onSurface.copy(alpha = DisabledInputOpacity), containerColor: Color = Color.Transparent, cursorColor: Color = MaterialTheme.colorScheme.primary, errorCursorColor: Color = MaterialTheme.colorScheme.error, selectionColors: TextSelectionColors = LocalTextSelectionColors.current, focusedBorderColor: Color = MaterialTheme.colorScheme.primary, unfocusedBorderColor: Color = MaterialTheme.colorScheme.outline, disabledBorderColor: Color = MaterialTheme.colorScheme.onSurface.copy(alpha = DisabledOutlineOpacity), errorBorderColor: Color = MaterialTheme.colorScheme.error, focusedLeadingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, unfocusedLeadingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, disabledLeadingIconColor: Color = MaterialTheme.colorScheme.onSurface.copy(alpha = DisabledLeadingIconOpacity), errorLeadingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, focusedTrailingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, unfocusedTrailingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, disabledTrailingIconColor: Color = MaterialTheme.colorScheme.onSurface.copy(alpha = DisabledTrailingIconOpacity), errorTrailingIconColor: Color = MaterialTheme.colorScheme.error, focusedLabelColor: Color = MaterialTheme.colorScheme.primary, unfocusedLabelColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, disabledLabelColor: Color = MaterialTheme.colorScheme.onSurface.copy(alpha = DisabledLabelOpacity), errorLabelColor: Color = MaterialTheme.colorScheme.error, placeholderColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, disabledPlaceholderColor: Color = MaterialTheme.colorScheme.onSurface.copy(alpha = DisabledInputOpacity)): FieldColors
Link copied to clipboard
fun iconButtonFieldAppearance(iconSize: DpSize = DpSize(width = 24.dp, height = 24.dp), iconPadding: PaddingValues? = null, buttonPadding: PaddingValues? = null, horizontalArrangement: Arrangement.Horizontal = Arrangement.Start, verticalAlignment: Alignment.Vertical = Alignment.Top, backgroundColor: Color = Color.Unspecified, contentColor: Color = Color.Unspecified, shape: Shape = RectangleShape, border: BorderStroke? = null): IconButtonFieldAppearance
Link copied to clipboard
fun labelFieldAppearance(colors: FieldColors = fieldColors(), textStyle: TextStyle = LocalTextStyle.current): LabelFieldAppearance
Link copied to clipboard
fun paragraphFieldAppearance(colors: FieldColors = fieldColors(), textStyle: TextStyle = LocalTextStyle.current, linePrefix: String? = null, backgroundColor: Color? = Color.Unspecified, borderSize: Dp = Dp.Unspecified, borderColor: Color = Color.Unspecified, padding: PaddingValues = PaddingValues(8.dp), cornerShape: Shape? = null, width: ParagraphFieldAppearance.Width = ParagraphFieldAppearance.Width.WrapContent): ParagraphFieldAppearance
Link copied to clipboard