CustomInput constructor
const
CustomInput({
- Key? key,
- required String hintText,
- required dynamic onChanged(),
- String? validator()?,
- IconData? icon,
- bool? passwordVisibility = false,
- TextInputType? textInputType = TextInputType.text,
- bool? obscureText = false,
- bool? enabledInputInteraction = true,
- TextCapitalization? textCapitalization = TextCapitalization.none,
- double? borderRadius = 14,
- Color? backgroundColor = Colors.white,
- Color? borderColor = CustomLightTheme.primaryColor,
- Color? fontColor = Colors.black54,
- int? minLines = 1,
- int? maxLines = 1,
- int? maxLenght,
- bool? expands = false,
- double? width,
- double? marginBottom = 16,
Implementation
const CustomInput({
Key? key,
required this.hintText,
required this.onChanged,
this.validator,
this.icon,
this.passwordVisibility = false,
this.textInputType = TextInputType.text,
this.obscureText = false,
this.enabledInputInteraction = true,
this.textCapitalization = TextCapitalization.none,
this.borderRadius = 14,
this.backgroundColor = Colors.white,
this.borderColor = CustomLightTheme.primaryColor,
this.fontColor = Colors.black54,
this.minLines = 1,
this.maxLines = 1,
this.maxLenght,
this.expands = false,
this.width,
this.marginBottom = 16,
}) : super(key: key);