NomoInput constructor
const
NomoInput({
- Key? key,
- Color? background,
- FocusNode? focusNode,
- EdgeInsets? padding,
- TextStyle? style,
- Widget? leading,
- Widget? trailling,
- bool autoFocus = false,
- String? title,
- TextInputType? keyboardType,
- List<
TextInputFormatter> ? inputFormatters, - BorderRadiusGeometry? borderRadius,
- String? placeHolder,
- TextStyle? titleStyle,
- TextStyle? placeHolderStyle,
- bool usePlaceholderAsTitle = false,
- int? maxLines,
- int? minLines,
- TextInputAction? textInputAction,
- ValueNotifier<
String> ? valueNotifier, - String? validator(
- String value
- Color? errorColor,
- TextStyle? errorStyle,
- ValueNotifier<
String?> ? errorNotifier, - Border? border,
- Border? errorBorder,
- Border? selectedBorder,
- Border? selectedErrorBorder,
- EdgeInsets? margin,
- Cubic? curve,
- Duration? duration,
- String? formKey,
- bool autoValidate = false,
- double? titleSpacing,
- double? height,
- void onChanged(
- String value
- TextAlign textAlign = TextAlign.start,
- void onFocusChanged(
- bool hasFocus
- bool enabled = true,
- bool scrollable = false,
- String? initialText,
- bool? obscureText,
- Widget? top,
- Widget? bottom,
- int? maxLength,
- int? maxParagraphs,
- void onTap()?,
- void onTapOutside()?,
- HitTestBehavior hitTestBehavior = HitTestBehavior.translucent,
- TextEditingController? textEditingController,
- void onFieldSubmitted()?,
Implementation
const NomoInput({
super.key,
this.background,
this.focusNode,
this.padding,
this.style,
this.leading,
this.trailling,
this.autoFocus = false,
this.title,
this.keyboardType,
this.inputFormatters,
this.borderRadius,
this.placeHolder,
this.titleStyle,
this.placeHolderStyle,
this.usePlaceholderAsTitle = false,
this.maxLines,
this.minLines,
this.textInputAction,
this.valueNotifier,
this.validator,
this.errorColor,
this.errorStyle,
this.errorNotifier,
this.border,
this.errorBorder,
this.selectedBorder,
this.selectedErrorBorder,
this.margin,
this.curve,
this.duration,
this.formKey,
this.autoValidate = false,
this.titleSpacing,
this.height,
this.onChanged,
this.textAlign = TextAlign.start,
this.onFocusChanged,
this.enabled = true,
this.scrollable = false,
this.initialText,
this.obscureText,
this.top,
this.bottom,
this.maxLength,
this.maxParagraphs,
this.onTap,
this.onTapOutside,
this.hitTestBehavior = HitTestBehavior.translucent,
this.textEditingController,
this.onFieldSubmitted,
}) : assert(
height == null || usePlaceholderAsTitle == false,
'Not supported please ask Thomas to implement',
),
assert(
textEditingController == null || valueNotifier == null,
'Please provide either a textEditingController or a valueNotifier',
);