AdeptTextField constructor
AdeptTextField({
- Key? key,
- AdeptTextFieldTheme? theme,
- required TextEditingController txtCon,
- String label = '',
- String hint = "",
- bool isHideText = false,
- bool isNumber = false,
- int maxLine = 1,
- bool isCapitalLetter = false,
- int? maxLen,
- bool isCount = false,
- double countHeight = 15,
- FocusNode? focusNode,
- bool isEnable = true,
- void onChanged()?,
- void onFieldSubmmited()?,
- bool isRequired = false,
Constructor allows you to define styling and value properties.
Implementation
AdeptTextField(
{super.key,
AdeptTextFieldTheme? theme,
required this.txtCon,
this.label = '',
this.hint = "",
this.isHideText = false,
this.isNumber = false,
this.maxLine = 1,
this.isCapitalLetter = false,
this.maxLen,
this.isCount = false,
this.countHeight = 15,
this.focusNode,
this.isEnable = true,
this.onChanged,
this.onFieldSubmmited,
this.isRequired = false})
: theme = theme ?? AdeptTextFieldTheme();