Shaking Text Field With Icon
fun ShakingTextFieldWithIcon(textFieldValue: String, onValueChange: (String) -> Unit, label: String, isError: Boolean, errorText: String, offsetX: Animatable<Float, AnimationVector1D>, leadingIcon: ImageVector = Icons.Default.LocalShipping, keyboardOptions: KeyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Text), visualTransformation: VisualTransformation = VisualTransformation.None)
Composable function for rendering a shaking text field with an icon.
Parameters
text Field Value
The current value of the text field.
on Value Change
Callback for handling changes in the text field value.
label
The label of the text field.
is Error
Flag indicating whether there is an error in the text field.
error Text
The error text to display.
offset X
Animatable for applying a shaking animation to the text field.
leading Icon
The leading icon for the text field.
keyboard Options
Keyboard options for the text field.
visual Transformation
Visual transformation for the text field.