SmartTextFieldFull constructor
SmartTextFieldFull({
- required String text,
- required TextEditingController controller,
- String hintText = "",
- String? labelText,
- int flex = 1,
- bool singleLine = true,
- TextStyle? textStyle,
- TextStyle? labelStyle,
- bool expands = false,
- TextStyle? titleStyle,
- TextStyle? hintStyle,
- double radius = 10,
- double borderWidth = 1,
- Color? color,
- EdgeInsetsGeometry? innerPadding,
- Color? borderColor,
- double? width,
- double? height,
- Color? enabledColor,
- Color? focusedColor,
- TextStyle? errorStyle,
- Color? backgroundColor,
- bool error = false,
- dynamic onChanged,
- bool isUnderline = true,
- bool noInputBorder = false,
- TextInputType textInputType = TextInputType.text,
- Widget? prefixIcon,
- EdgeInsetsGeometry? padding,
- String? errorText,
- double paddingLeft = 0,
Implementation
SmartTextFieldFull({
required this.text,
required this.controller,
this.hintText = "",
this.labelText,
this.flex = 1,
this.singleLine = true,
this.textStyle,
this.labelStyle,
this.expands = false,
this.titleStyle,
this.hintStyle,
this.radius = 10,
this.borderWidth = 1,
this.color,
this.innerPadding,
this.borderColor,
this.width,
this.height,
this.enabledColor,
this.focusedColor,
this.errorStyle,
this.backgroundColor,
this.error = false,
this.onChanged,
this.isUnderline = true,
this.noInputBorder = false,
this.textInputType = TextInputType.text,
this.prefixIcon,
this.padding,
this.errorText,
this.paddingLeft = 0,
}) {
errorStyle ??= Get.find<AppFonts>().S(color: Colors.red);
}