FTextField constructor
const
FTextField({
- Key? key,
- required String title,
- required TextEditingController controller,
- Color? selectedColor,
- TextInputType textinputType = TextInputType.text,
- List<
TextInputFormatter> inputFormatters = const [], - bool withTitle = true,
- bool? editable,
- TextCapitalization textCapitalization = TextCapitalization.none,
- void onChanged()?,
- IconData? prefixIcon,
- TextAlign textAlign = TextAlign.end,
- String? hintText,
- FocusNode? focusNode,
- void onEditingComplete()?,
- VoidCallback? onTap,
- void onSubmitted()?,
- Widget? suffixIcon,
- int? maxLines,
- int? minLines,
- double borderRadius = 10,
- bool obscureText = false,
- EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(vertical: 15.0, horizontal: 15.0),
- Iterable<
String> ? autofillHints, - TextStyle titleStyle = const TextStyle(overflow: TextOverflow.ellipsis),
- TextStyle textStyle = const TextStyle(overflow: TextOverflow.ellipsis),
- TextStyle? hintStyle = const TextStyle(overflow: TextOverflow.ellipsis),
- Color fillColor = Colors.white70,
- InputBorder? enabledBorder = const OutlineInputBorder(borderRadius: BorderRadius.all(Radius.circular(10)), borderSide: BorderSide(color: Color(0xFF646464), width: 0.5)),
- bool readOnly = false,
- 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);