GTFTextField constructor

const GTFTextField({
  1. Key? key,
  2. ValueChanged<String>? onChanged,
  3. ValueChanged<String>? onSubmitted,
  4. GestureTapCallback? onTap,
  5. VoidCallback? onEditingComplete,
  6. VoidCallback? onClear,
  7. TextEditingController? controller,
  8. FocusNode? focusNode,
  9. String? text,
  10. String? placeholder,
  11. String clearIcon = "packages/gtech_flutter_ui/assets/svg/gtf_input_clear.svg",
  12. String secretCloseIcon = "packages/gtech_flutter_ui/assets/svg/gtf_input_secret_0.svg",
  13. String secretOpenIcon = "packages/gtech_flutter_ui/assets/svg/gtf_input_secret_1.svg",
  14. bool isEnabled = true,
  15. bool hideLine = false,
  16. bool hideClear = false,
  17. bool isSecret = false,
  18. int? maxLines = 1,
  19. double radius = 0,
  20. double? fontSize = GTFFont.title,
  21. double suffixIconMargin = 8,
  22. double cursorWidth = 1,
  23. double lineHeight = 0.5,
  24. Color? backgroundColor,
  25. Color? textColor = GTFColor.grey6,
  26. Color? textDisabledColor = GTFColor.grey6,
  27. Color? placeholderColor = GTFColor.grey3,
  28. Color? cursorColor = GTFColor.black,
  29. Color lineNormalColor = GTFColor.grey2,
  30. Color lineFocusedColor = GTFColor.yellowPrimary,
  31. Color lineDisabledColor = GTFColor.grey2,
  32. FontWeight? fontWeight = GTFFont.regular,
  33. TextAlign textAlign = TextAlign.start,
  34. List<TextInputFormatter>? inputFormatters,
  35. TextInputType? keyboardType,
  36. TextInputAction? textInputAction = TextInputAction.done,
  37. EdgeInsets? padding,
  38. EdgeInsets? contentPadding = const EdgeInsets.fromLTRB(0, 12, 8, 12),
  39. EdgeInsets? suffixIconPadding,
  40. Widget? suffixWidget,
})

Implementation

const GTFTextField({
  Key? key,
  this.onChanged,
  this.onSubmitted,
  this.onTap,
  this.onEditingComplete,
  this.onClear,
  this.controller,
  this.focusNode,
  this.text,
  this.placeholder,
  this.clearIcon = "packages/gtech_flutter_ui/assets/svg/gtf_input_clear.svg",
  this.secretCloseIcon = "packages/gtech_flutter_ui/assets/svg/gtf_input_secret_0.svg",
  this.secretOpenIcon = "packages/gtech_flutter_ui/assets/svg/gtf_input_secret_1.svg",
  this.isEnabled = true,
  this.hideLine = false,
  this.hideClear = false,
  this.isSecret = false,
  this.maxLines = 1,
  this.radius = 0,
  this.fontSize = GTFFont.title,
  this.suffixIconMargin = 8,
  this.cursorWidth = 1,
  this.lineHeight = 0.5,
  this.backgroundColor,
  this.textColor = GTFColor.grey6,
  this.textDisabledColor = GTFColor.grey6,
  this.placeholderColor = GTFColor.grey3,
  this.cursorColor = GTFColor.black,
  this.lineNormalColor = GTFColor.grey2,
  this.lineFocusedColor = GTFColor.yellowPrimary,
  this.lineDisabledColor = GTFColor.grey2,
  this.fontWeight = GTFFont.regular,
  this.textAlign = TextAlign.start,
  this.inputFormatters,
  this.keyboardType,
  this.textInputAction = TextInputAction.done,
  this.padding,
  this.contentPadding = const EdgeInsets.fromLTRB(0, 12, 8, 12),
  this.suffixIconPadding,
  this.suffixWidget,
}) : super(key: key);