BorderTextField constructor
BorderTextField({
- @required BuildContext? context,
- @required Key? key,
- @required TextEditingController? controller,
- bool enabled = true,
- TextInputType inputType = TextInputType.text,
- bool obscureText = false,
- String obscureCharacter = '•',
- int? maxLength = 50,
- int maxLines = 1,
- TextStyle? style,
- TextStyle? labelStyle,
- TextInputAction textInputAction = TextInputAction.done,
- bool autoValidateMode = false,
- String? labelText,
- String? hintText,
- Widget? prefixIcon,
- required dynamic validator(
- String? text
- bool isDense = false,
- TextCapitalization textCapitalization = TextCapitalization.none,
- bool showSuffixIcon = false,
- dynamic showText(
- bool show
- FocusNode? focusNode,
- dynamic onEditingComplete()?,
- dynamic onTextChanged(
- String? text
- dynamic filled = true,
Implementation
BorderTextField(
{@required BuildContext? context,
@required this.key,
@required this.controller,
this.enabled = true,
this.inputType = TextInputType.text,
this.obscureText = false,
this.obscureCharacter = '•',
this.maxLength = 50,
this.maxLines = 1,
TextStyle? style,
TextStyle? labelStyle,
this.textInputAction = TextInputAction.done,
this.autoValidateMode = false,
this.labelText,
this.hintText,
this.prefixIcon,
required this.validator,
this.isDense = false,
this.textCapitalization = TextCapitalization.none,
this.showSuffixIcon = false,
this.showText,
this.focusNode,
this.onEditingComplete,
this.onTextChanged,
this.filled = true}) {
this.style = style ??= Theme.of(context!).textTheme.bodyText2;
this.labelStyle = labelStyle ??= Theme.of(context!).textTheme.bodyText2;
}