AFieldName constructor
const
AFieldName({
- Key? key,
- bool readOnly = false,
- bool clearable = false,
- bool required = false,
- int? flexible,
- bool expanded = false,
- EdgeInsets? margin,
- String? initialValue,
- String? label = 'Nome',
- String identifier = "name",
- bool autofocus = false,
- Widget? bottom,
- bool capitalize = false,
- List<
ARule< ? customRules,String> > - bool denySpaces = false,
- double height = 46,
- String? hintText,
- bool linkToAForm = true,
- int maxLines = 1,
- void onChanged()?,
- VoidCallback? onSubmit,
- void onUnfocus()?,
- EdgeInsets? padding,
- bool readonly = false,
- Widget? suffix,
Implementation
const AFieldName({
super.key,
super.readOnly,
super.clearable,
super.required,
super.flexible,
super.expanded,
super.margin,
super.initialValue,
super.label = 'Nome',
super.identifier = "name",
super.autofocus,
super.bottom,
super.capitalize,
super.customRules,
super.denySpaces,
super.height,
super.hintText,
super.linkToAForm,
super.maxLines,
super.onChanged,
super.onSubmit,
super.onUnfocus,
super.padding,
super.readonly,
super.suffix,
}) : super(
icon: Icons.person,
keyboardType: TextInputType.name,
autofillHints: const <String>[AutofillHints.name],
);