AppTextField constructor
const
AppTextField({ - Key? key,
- required TextFieldCubit bloc,
- String? label,
- String? hintText,
- bool autofocus = false,
- TextInputType keyboardType = TextInputType.text,
- TextInputAction? textInputAction,
- int? maxLines = 1,
- bool obscureText = false,
- InputDecoration? decoration,
- Widget? prefixIcon,
- Widget? suffixIcon,
- Widget builder(
- BuildContext context,
- TextFieldState state
)?,
- bool filled = true,
- double? borderRadius,
- InputBorder? border,
- bool? isUnderlined = false,
- Color? borderColor,
- double? borderWidth,
})
Implementation
const AppTextField({
super.key,
required this.bloc,
this.label,
this.hintText,
this.autofocus = false,
this.keyboardType = TextInputType.text,
this.textInputAction,
this.maxLines = 1,
this.obscureText = false,
this.decoration,
this.prefixIcon,
this.suffixIcon,
this.builder,
this.filled = true,
this.borderRadius,
this.border,
this.isUnderlined = false,
this.borderColor,
this.borderWidth,
});