textFormFieldWidget method

Widget textFormFieldWidget(
  1. BuildContext context
)

Implementation

Widget textFormFieldWidget(BuildContext context) {
  final textStyle = context.styles.baseL.value.copyWith(height: 1);
  final theme = context.theme;
  return DisabledWidget(
    disabled: !_enabled,
    child: TextFormField(
      enabled: _enabled,
      obscuringCharacter: '●',
      controller: controller,
      style: textStyle.copyWith(color: _hasError ? theme.danger.main : theme.neutral.main),
      obscureText: obscureData?.isObscured ?? false,
      keyboardType: textInputType,
      maxLines: maxLines ?? 1,
      decoration: _decoration(context),
      validator: validator,
      onChanged: onChanged,
      readOnly: readOnly,
      maxLength: limit,
    ),
  );
}