AFieldName constructor

const AFieldName({
  1. Key? key,
  2. bool readOnly = false,
  3. bool clearable = false,
  4. bool required = false,
  5. int? flexible,
  6. bool expanded = false,
  7. EdgeInsets? margin,
  8. String? initialValue,
  9. String? label = 'Nome',
  10. String identifier = "name",
  11. bool autofocus = false,
  12. Widget? bottom,
  13. bool capitalize = false,
  14. List<ARule<String>>? customRules,
  15. bool denySpaces = false,
  16. double height = 46,
  17. String? hintText,
  18. bool linkToAForm = true,
  19. int maxLines = 1,
  20. void onChanged(
    1. String?
    )?,
  21. VoidCallback? onSubmit,
  22. void onUnfocus()?,
  23. EdgeInsets? padding,
  24. bool readonly = false,
  25. 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],
      );