MTextFiled constructor
MTextFiled({
- Key? key,
- Key? mKey,
- TextStyle? hintStyle,
- TextStyle? labelStyle,
- TextStyle? textStyle,
- TextStyle? titleStyle,
- TextAlign textAlign = TextAlign.start,
- String? validator(
- String? valid
- TextEditingController? controller,
- List<
TextInputFormatter> ? inputFiltering, - FontWeight? lableWeight,
- FontWeight? textWeight,
- FontWeight? hintWeight,
- Widget? outterPrefix,
- FontWeight? titleWeight,
- TextInputAction? textInputAction,
- FocusNode? focusNode,
- InputBorder? border,
- EdgeInsetsGeometry? titlePadding,
- int? maxLength,
- Color? fillColor,
- String? lableText,
- Widget? suffix,
- VoidCallback? onEditingComplete,
- TextDecoration? textDecoration,
- Widget? prefix,
- String? title,
- String? hintText,
- String? fontFamily,
- Color? hintColor,
- Color textColor = Colors.black,
- Color? labelColor = Colors.grey,
- Color titleColor = Colors.black,
- double textSize = FoontSize.font19,
- double titleSize = FoontSize.font19,
- double hintSize = FoontSize.font17,
- EdgeInsetsGeometry? contentPadding = const MPadding.set(horizontal: 21.0, vertical: 20.0),
- bool enabled = true,
- bool showCursor = true,
- bool readOnly = false,
- TextInputType keyboardType = TextInputType.name,
- int? maxLines = 1,
- bool obscureText = false,
- ValueChanged<
String> ? onChanged, - 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,
});