CustomInput constructor

const CustomInput({
  1. Key? key,
  2. required String hintText,
  3. required dynamic onChanged(
    1. String
    ),
  4. String? validator(
    1. String?
    )?,
  5. IconData? icon,
  6. bool? passwordVisibility = false,
  7. TextInputType? textInputType = TextInputType.text,
  8. bool? obscureText = false,
  9. bool? enabledInputInteraction = true,
  10. TextCapitalization? textCapitalization = TextCapitalization.none,
  11. double? borderRadius = 14,
  12. Color? backgroundColor = CustomTheme.secondaryBorderColor,
  13. Color? borderColor = CustomTheme.primaryColor,
  14. Color? fontColor = Colors.white,
  15. int? minLines = 1,
  16. int? maxLines = 1,
  17. int? maxLenght,
  18. bool? expands = false,
  19. double? width,
  20. 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 = CustomTheme.secondaryBorderColor,
  this.borderColor = CustomTheme.primaryColor,
  this.fontColor = Colors.white,
  this.minLines = 1,
  this.maxLines = 1,
  this.maxLenght,
  this.expands = false,
  this.width,
  this.marginBottom = 16,
}) : super(key: key);