FTextField constructor

const FTextField({
  1. Key? key,
  2. required String title,
  3. required TextEditingController controller,
  4. Color? selectedColor,
  5. TextInputType textinputType = TextInputType.text,
  6. List<TextInputFormatter> inputFormatters = const [],
  7. bool withTitle = true,
  8. bool? editable,
  9. TextCapitalization textCapitalization = TextCapitalization.none,
  10. void onChanged(
    1. String
    )?,
  11. IconData? prefixIcon,
  12. TextAlign textAlign = TextAlign.end,
  13. String? hintText,
  14. FocusNode? focusNode,
  15. void onEditingComplete()?,
  16. VoidCallback? onTap,
  17. void onSubmitted(
    1. String
    )?,
  18. Widget? suffixIcon,
  19. int? maxLines,
  20. int? minLines,
  21. double borderRadius = 10,
  22. bool obscureText = false,
  23. EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(vertical: 15.0, horizontal: 15.0),
  24. Iterable<String>? autofillHints,
  25. TextStyle titleStyle = const TextStyle(overflow: TextOverflow.ellipsis),
  26. TextStyle textStyle = const TextStyle(overflow: TextOverflow.ellipsis),
  27. TextStyle? hintStyle = const TextStyle(overflow: TextOverflow.ellipsis),
  28. Color fillColor = Colors.white70,
  29. InputBorder? enabledBorder = const OutlineInputBorder(borderRadius: BorderRadius.all(Radius.circular(10)), borderSide: BorderSide(color: Color(0xFF646464), width: 0.5)),
  30. bool readOnly = false,
  31. InputDecoration? inputDecoration,
})

Implementation

const FTextField(
    {Key? key,
    required this.title,
    required this.controller,
    this.selectedColor,
    this.textinputType = TextInputType.text,
    this.inputFormatters = const [],
    this.withTitle = true,
    this.editable,
    this.textCapitalization = TextCapitalization.none,
    this.onChanged,
    this.prefixIcon,
    this.textAlign = TextAlign.end,
    this.hintText,
    this.focusNode,
    this.onEditingComplete,
    this.onTap,
    this.onSubmitted,
    this.suffixIcon,
    this.maxLines,
    this.minLines,
    this.borderRadius = 10,
    this.obscureText = false,
    this.contentPadding =
        const EdgeInsets.symmetric(vertical: 15.0, horizontal: 15.0),
    this.autofillHints,
    this.titleStyle = const TextStyle(overflow: TextOverflow.ellipsis),
    this.textStyle = const TextStyle(overflow: TextOverflow.ellipsis),
    this.hintStyle = const TextStyle(overflow: TextOverflow.ellipsis),
    this.fillColor = Colors.white70,
    this.enabledBorder = const OutlineInputBorder(
        borderRadius: BorderRadius.all(Radius.circular(10)),
        borderSide: BorderSide(color: Color(0xFF646464), width: 0.5)),
    this.readOnly = false,
    this.inputDecoration})
    : super(key: key);