CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. required IconData icon,
  3. required String hintText,
  4. bool isEmail = false,
  5. bool isPhone = false,
  6. bool isNumber = false,
  7. int maxLines = 1,
  8. TextEditingController? controller,
  9. String? validator(
    1. String?
    )?,
  10. bool obscureText = false,
  11. TextInputAction textInputAction = TextInputAction.done,
  12. dynamic onChanged(
    1. String
    )?,
  13. dynamic onTap()?,
  14. FocusNode? focusNode,
  15. Color borderColor = Colors.grey,
  16. Color iconColor = Colors.black,
  17. Color fillColor = Colors.white,
  18. bool filled = true,
  19. TextCapitalization textCapitalization = TextCapitalization.none,
})

Implementation

const CustomTextField({
  Key? key,
  required this.icon,
  required this.hintText,
  this.isEmail = false,
  this.isPhone = false,
  this.isNumber = false,
  this.maxLines = 1,
  this.controller,
  this.validator,
  this.obscureText = false,
  this.textInputAction = TextInputAction.done,
  this.onChanged,
  this.onTap,
  this.focusNode,
  this.borderColor = Colors.grey,
  this.iconColor = Colors.black,
  this.fillColor = Colors.white,
  this.filled = true,
  this.textCapitalization = TextCapitalization.none,
}) : super(key: key);