CustomInput constructor

const CustomInput({
  1. Key? key,
  2. required String hintText,
  3. required dynamic onChanged(
    1. String
    ),
  4. String? initialValue,
  5. dynamic onSaved(
    1. String?
    )?,
  6. String? validator(
    1. String?
    )?,
  7. IconData? icon,
  8. bool? passwordVisibility = false,
  9. TextInputType? textInputType = TextInputType.text,
  10. bool? obscureText = false,
  11. bool? enabledInputInteraction = true,
  12. TextCapitalization? textCapitalization = TextCapitalization.none,
  13. double? borderRadius = 14,
  14. Color? backgroundColor = Colors.white,
  15. Color? borderColor = CustomLightTheme.primaryColor,
  16. Color? fontColor = Colors.black54,
  17. int? minLines = 1,
  18. int? maxLines = 1,
  19. int? maxLenght,
  20. bool? expands = false,
  21. double? width,
  22. double? marginBottom = 16,
  23. bool isNumeric = false,
})

Implementation

const CustomInput(
    {Key? key,
    required this.hintText,
    required this.onChanged,
    this.initialValue,
    this.onSaved,
    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,
    this.isNumeric = false})
    : super(key: key);