AdeptTextField constructor

AdeptTextField({
  1. Key? key,
  2. AdeptTextFieldTheme? theme,
  3. required TextEditingController txtCon,
  4. String label = '',
  5. String hint = "",
  6. bool isHideText = false,
  7. bool isNumber = false,
  8. int maxLine = 1,
  9. bool isCapitalLetter = false,
  10. int? maxLen,
  11. bool isCount = false,
  12. double countHeight = 15,
  13. FocusNode? focusNode,
  14. bool isEnable = true,
  15. void onChanged(
    1. String
    )?,
  16. void onFieldSubmmited(
    1. String
    )?,
  17. 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();