KitTextfield constructor

const KitTextfield({
  1. double heigth = 50,
  2. double width = 300,
  3. BoxDecoration? decoration,
  4. EdgeInsets? padding = const EdgeInsets.symmetric(vertical: 10, horizontal: 15),
  5. EdgeInsets margin = const EdgeInsets.symmetric(horizontal: 70),
  6. Color? colorGradient,
  7. Color? colorGradient2,
  8. bool? containTiltle = false,
  9. String title = 'QT Components UI',
  10. TextStyle? titleStyle,
  11. ValueChanged<String>? onChanged,
  12. String textInTextField = 'QT Components UI',
  13. TextStyle textStyleInTextField = const TextStyle(color: Colors.black, fontSize: 15, fontWeight: FontWeight.w700),
  14. InputBorder border = InputBorder.none,
  15. bool obscureText = false,
  16. TextEditingController? controller,
  17. TextInputType? keyboardType,
  18. Icon? prefix = const Icon(Icons.search_rounded, color: Colors.black),
  19. IconButton? sufix,
  20. int? maxlines,
  21. int? minlines,
  22. Color? colorTextField,
  23. bool containGradient = false,
  24. Alignment? alignmentGradientBegin,
  25. Alignment? alignmentGradientEnd,
  26. MainAxisAlignment? mainAxisAlignmentTitle,
  27. bool enable = true,
  28. bool enableSuggestions = false,
  29. bool decorationWithOutline = false,
  30. bool alignLabelWithHint = true,
  31. Color colorBorderSide = Colors.orange,
  32. FloatingLabelBehavior floatingLabelBehavior = FloatingLabelBehavior.always,
  33. double widthBorderSide = 1.0,
  34. List<TextInputFormatter>? inputFormatters,
  35. bool textFieldWithGradient = false,
  36. Color? colorMaterial,
  37. TextStyle? style,
})

Implementation

const KitTextfield(
    {this.heigth = 50,
    this.width = 300,
    this.decoration,
    this.padding = const EdgeInsets.symmetric(vertical: 10, horizontal: 15),
    this.margin = const EdgeInsets.symmetric(horizontal: 70),
    this.colorGradient,
    this.colorGradient2,
    this.containTiltle = false,
    this.title = 'QT Components UI',
    this.titleStyle,
    this.onChanged,
    this.textInTextField = 'QT Components UI',
    this.textStyleInTextField = const TextStyle(
        color: Colors.black, fontSize: 15, fontWeight: FontWeight.w700),
    this.border = InputBorder.none,
    this.obscureText = false,
    this.controller,
    this.keyboardType,
    this.prefix = const Icon(
      Icons.search_rounded,
      color: Colors.black,
    ),
    this.sufix,
    this.maxlines,
    this.minlines,
    this.colorTextField,
    this.containGradient = false,
    this.alignmentGradientBegin,
    this.alignmentGradientEnd,
    this.mainAxisAlignmentTitle,
    this.enable = true,
    this.enableSuggestions = false,
    this.decorationWithOutline = false,
    this.alignLabelWithHint = true,
    this.colorBorderSide = Colors.orange,
    this.floatingLabelBehavior = FloatingLabelBehavior.always,
    this.widthBorderSide = 1.0,
    this.inputFormatters,
    this.textFieldWithGradient = false,
    this.colorMaterial,
    this.style});