AppTextField constructor

const AppTextField({
  1. Key? key,
  2. required TextFieldCubit bloc,
  3. String? label,
  4. String? hintText,
  5. bool autofocus = false,
  6. TextInputType keyboardType = TextInputType.text,
  7. TextInputAction? textInputAction,
  8. int? maxLines = 1,
  9. bool obscureText = false,
  10. InputDecoration? decoration,
  11. Widget? prefixIcon,
  12. Widget? suffixIcon,
  13. Widget builder(
    1. BuildContext context,
    2. TextFieldState state
    )?,
  14. bool filled = true,
  15. double? borderRadius,
  16. InputBorder? border,
  17. bool? isUnderlined = false,
  18. Color? borderColor,
  19. double? borderWidth,
})

Implementation

const AppTextField({
  super.key,
  required this.bloc,
  this.label,
  this.hintText,
  this.autofocus = false,
  this.keyboardType = TextInputType.text,
  this.textInputAction,
  this.maxLines = 1,
  this.obscureText = false,
  this.decoration,
  this.prefixIcon,
  this.suffixIcon,
  this.builder,
  this.filled = true,
  this.borderRadius,
  this.border,
  this.isUnderlined = false,
  this.borderColor,
  this.borderWidth,
});