AppTextField constructor
const
AppTextField({
- Key? key,
- dynamic onChanged(
- String? value
- bool isVerticalAlign = true,
- String? title,
- TextEditingController? controller,
- TextStyle? contentStyle,
- TextStyle? labelStyle,
- int? maxLines,
- bool autoFocus = false,
- 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,
});