Package 

Class InputFieldKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit InputField(String value, Function1<String, Unit> onValueChange, Modifier modifier, Boolean enabled, Integer maxLines, BorderStroke border, PaddingValues innerPadding, KeyboardOptions keyboardOptions, VisualTransformation visualTransformation, Function1<Function0<Unit>, Unit> decorationBox) Custom input field that we use for our UI.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • InputField

        @Composable() final static Unit InputField(String value, Function1<String, Unit> onValueChange, Modifier modifier, Boolean enabled, Integer maxLines, BorderStroke border, PaddingValues innerPadding, KeyboardOptions keyboardOptions, VisualTransformation visualTransformation, Function1<Function0<Unit>, Unit> decorationBox)

        Custom input field that we use for our UI. It's fairly simple - shows a basic input with clipped corners and a border stroke, with some extra padding on each side.

        Within it, we allow for custom decoration, so that the user can define what the input field looks like when filled with content.

        Parameters:
        value - The current input value.
        onValueChange - Handler when the value changes as the user types.
        modifier - Modifier for styling.
        enabled - If the Composable is enabled for text input or not.
        maxLines - The number of lines that are allowed in the input, no limit by default.
        border - The BorderStroke that will appear around the input field.
        innerPadding - The padding inside the input field, around the label or input.
        keyboardOptions - The KeyboardOptions to be applied to the input.
        visualTransformation - The VisualTransformation to be applied to the input.
        decorationBox - Composable function that represents the input field decoration as it's filled with content.