AppTextField constructor

const AppTextField({
  1. Key? key,
  2. dynamic onChanged(
    1. String? value
    )?,
  3. bool isVerticalAlign = true,
  4. String? title,
  5. TextEditingController? controller,
  6. TextStyle? contentStyle,
  7. TextStyle? labelStyle,
  8. int? maxLines,
  9. bool autoFocus = false,
  10. EdgeInsets contentPadding = InputConstants.contentPadding,
})

Implementation

const AppTextField({
  super.key,

  /// Callback function that is called when the text in the text field changes.
  this.onChanged,

  /// Determines whether the text field should be aligned vertically or horizontally.
  this.isVerticalAlign = true,

  /// The title to display above the text field, if any.
  this.title,

  /// The controller that manages the text field's content.
  this.controller,

  /// The style of the text inside the text field.
  this.contentStyle,

  /// The style of the label (title) above the text field.
  this.labelStyle,

  /// The maximum number of lines the text field can display.
  this.maxLines,

  /// Whether the text field should be focused when it is first displayed.
  this.autoFocus = false,

  /// Padding around the content inside the text field.
  this.contentPadding = InputConstants.contentPadding,
});