MTextFiled constructor

MTextFiled({
  1. Key? key,
  2. Key? mKey,
  3. TextStyle? hintStyle,
  4. TextStyle? labelStyle,
  5. TextStyle? textStyle,
  6. TextStyle? titleStyle,
  7. TextAlign textAlign = TextAlign.start,
  8. String? validator(
    1. String? valid
    )?,
  9. TextEditingController? controller,
  10. List<TextInputFormatter>? inputFiltering,
  11. FontWeight? lableWeight,
  12. FontWeight? textWeight,
  13. FontWeight? hintWeight,
  14. Widget? outterPrefix,
  15. FontWeight? titleWeight,
  16. TextInputAction? textInputAction,
  17. FocusNode? focusNode,
  18. InputBorder? border,
  19. EdgeInsetsGeometry? titlePadding,
  20. int? maxLength,
  21. Color? fillColor,
  22. String? lableText,
  23. Widget? suffix,
  24. VoidCallback? onEditingComplete,
  25. TextDecoration? textDecoration,
  26. Widget? prefix,
  27. String? title,
  28. String? hintText,
  29. String? fontFamily,
  30. Color? hintColor,
  31. Color textColor = Colors.black,
  32. Color? labelColor = Colors.grey,
  33. Color titleColor = Colors.black,
  34. double textSize = FoontSize.font19,
  35. double titleSize = FoontSize.font19,
  36. double hintSize = FoontSize.font17,
  37. EdgeInsetsGeometry? contentPadding = const MPadding.set(horizontal: 21.0, vertical: 20.0),
  38. bool enabled = true,
  39. bool showCursor = true,
  40. bool readOnly = false,
  41. TextInputType keyboardType = TextInputType.name,
  42. int? maxLines = 1,
  43. bool obscureText = false,
  44. ValueChanged<String>? onChanged,
  45. Color? activeBorderColor,
})

Implementation

MTextFiled({
  super.key,
  this.mKey,
  this.hintStyle,
  this.labelStyle,
  this.textStyle,
  this.titleStyle,
  this.textAlign = TextAlign.start,
  this.validator,
  this.controller,
  this.inputFiltering,
  this.lableWeight,
  this.textWeight,
  this.hintWeight,
  this.outterPrefix,
  this.titleWeight,
  this.textInputAction,
  this.focusNode,
  this.border,
  this.titlePadding,
  this.maxLength,
  this.fillColor,
  this.lableText,
  this.suffix,
  this.onEditingComplete,
  this.textDecoration,
  this.prefix,
  this.title,
  this.hintText,
  this.fontFamily,
  this.hintColor,
  this.textColor = Colors.black,
  this.labelColor = Colors.grey,
  this.titleColor = Colors.black,
  this.textSize = FoontSize.font19,
  this.titleSize = FoontSize.font19,
  this.hintSize = FoontSize.font17,
  this.contentPadding = const MPadding.set(horizontal: 21.0, vertical: 20.0),
  this.enabled = true,
  this.showCursor = true,
  this.readOnly = false,
  this.keyboardType = TextInputType.name,
  this.maxLines = 1,
  this.obscureText = false,
  this.onChanged,
  this.activeBorderColor,
});