CustomTextField constructor
const
CustomTextField({
- Key? key,
- required IconData icon,
- required String hintText,
- bool isEmail = false,
- bool isPhone = false,
- bool isNumber = false,
- int maxLines = 1,
- TextEditingController? controller,
- String? validator()?,
- bool obscureText = false,
- TextInputAction textInputAction = TextInputAction.done,
- dynamic onChanged()?,
- dynamic onTap()?,
- FocusNode? focusNode,
- Color borderColor = Colors.grey,
- Color iconColor = Colors.black,
- Color fillColor = Colors.white,
- bool filled = true,
- 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);