TextInputFormItem constructor

TextInputFormItem({
  1. Key? key,
  2. String? label,
  3. String title = "",
  4. String? subTitle,
  5. String? tipLabel,
  6. FocusNode? focusNode,
  7. TextInputAction? textInputAction,
  8. String prefixIconType = PrefixIconType.normal,
  9. String error = "",
  10. bool isEdit = true,
  11. bool obscureText = false,
  12. bool isRequire = false,
  13. bool isPrefixIconEnabled = false,
  14. VoidCallback? onAddTap,
  15. VoidCallback? onRemoveTap,
  16. VoidCallback? onTip,
  17. String? prefixText,
  18. String? hint,
  19. String? unit,
  20. int? maxCharCount,
  21. bool autofocus = false,
  22. String? inputType,
  23. List<TextInputFormatter>? inputFormatters,
  24. ValueChanged<String>? onChanged,
  25. TextEditingController? controller,
  26. Color? backgroundColor,
  27. FormItemConfig? themeData,
})

Implementation

TextInputFormItem({
  Key? key,
  this.label,
  this.title = "",
  this.subTitle,
  this.tipLabel,
  this.focusNode,
  this.textInputAction,
  this.prefixIconType = PrefixIconType.normal,
  this.error = "",
  this.isEdit = true,
  this.obscureText = false,
  this.isRequire = false,
  this.isPrefixIconEnabled = false,
  this.onAddTap,
  this.onRemoveTap,
  this.onTip,
  this.prefixText,
  this.hint,
  this.unit,
  this.maxCharCount,
  this.autofocus = false,
  this.inputType,
  this.inputFormatters,
  this.onChanged,
  this.controller,
  this.backgroundColor,
  this.themeData,
}) : super(key: key) {
  themeData ??= FormItemConfig();
  themeData = BaseThemeConfig.instance
      .getConfig(configId: themeData!.configId)
      .formItemConfig
      .merge(themeData);
  themeData =
      themeData!.merge(FormItemConfig(backgroundColor: backgroundColor));
}