OwlnextInput class
Constructors
-
OwlnextInput({Key? key, TextInputSubType type = TextInputSubType.text, TextEditingController? controller, String? label, String? errorText = '', int? minimumLines = 1, String? hintText = '', Widget? suffixIcon, Widget? prefixIcon, bool enabled = true, void onChanged(String)?, String? suffixText, int? charsLimit, bool isMandatory = false, Function? infoCallback, double? amountMaxLimit, int? decimalsMaxLimit, int? numberMaxLimit, int? numberMinLimit, FocusNode? focus, RegExp? customRegex, DateTime? minimumDate, DateTime? maximumDate, void onSubmitted(String)?, bool isInsideList = true, String? text, Axis? axis = Axis.vertical, bool hasCopyToClipboard = false, TextInputAction? textInputAction, Iterable<String>? autofillHints, InputDecoration? inputDecoration, TextStyle? innerInputTextStyle, CrossAxisAlignment? verticalCrossAlignment, MainAxisAlignment? verticalMainAlignment, TextAlign? textAlign, void onEditingComplete()?, void datePickerCallback(String)?, bool isExpanded = false, ScrollPhysics? physics})
-
Owlnext form input
Based on Material design and uses TextFormField
Used to automate all input behavior in one place
const
Properties
-
amountMaxLimit
→ double?
-
Specifies the maximum amount if the input is an amount
final
-
autofillHints
→ Iterable<String>?
-
Autofill hints for autocomplete inputs
final
-
axis
→ Axis?
-
Set the axis for the label -> input
final
-
charsLimit
→ int?
-
Number of characters limitation, null if none
final
-
controller
→ TextEditingController?
-
Text input controller
final
-
customRegex
→ RegExp?
-
Specifies a custom Regex to check on validation
final
-
datePickerCallback
→ void Function(String)?
-
Callback on the datepicker
final
-
decimalsMaxLimit
→ int?
-
Specifies the maximum number of decimals, if the input is an amount
final
-
enabled
→ bool
-
Is enabled or not
final
-
errorText
→ String?
-
final
-
focus
→ FocusNode?
-
Specifies a custom FocusNode for the input
Useful if there is a custom Focus-related behavior
final
-
hasCopyToClipboard
→ bool
-
Specifies if the copy-to-clipboard button should be here
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hintText
→ String?
-
final
-
infoCallback
→ Function?
-
Called when clicking on the information icon, right to the label
Can be anything (openPanel, openPopup...)
final
-
innerInputTextStyle
→ TextStyle?
-
To override the Artist one
final
-
inputDecoration
→ InputDecoration?
-
To override the Artist one
final
-
isExpanded
→ bool
-
Bypasses the
Artist().maxInputWidth limit
Default to false
final
-
isInsideList
→ bool
-
Is the text input inside a list, enables the autoscroll on validation
final
-
isMandatory
→ bool
-
Is mandatory or not, determines the validator behavior
final
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
label
→ String?
-
final
-
maximumDate
→ DateTime?
-
Specifies a maximum date to check on validation, if the input is a date
final
-
minimumDate
→ DateTime?
-
Specifies a minimum date to check on validation, if the input is a date
final
-
minimumLines
→ int?
-
Number of lines for text areas, null if classic input
final
-
numberMaxLimit
→ int?
-
Specifies the maximum number to reach if the input is a number
final
-
numberMinLimit
→ int?
-
Specifies the minimum number to reach if the input is a number
final
-
onChanged
→ void Function(String)?
-
Called every time the text input is changed, with the current String as arg
final
-
onEditingComplete
→ void Function()?
-
Callback when editing is finished
final
-
onSubmitted
→ void Function(String)?
-
Custom callback on input validation
Useful for calling a specific API for example (BAN, SIRET...)
final
-
physics
→ ScrollPhysics?
-
Overrides the BouncingScrollPhysics for textareas
final
-
prefixIcon
→ Widget?
-
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
suffixIcon
→ Widget?
-
final
-
suffixText
→ String?
-
final
-
text
→ String?
-
Text string to not use a controller
Can be used alongside onChanged
final
-
textAlign
→ TextAlign?
-
Align the text inside the input, default to TextAlign.left
final
-
textInputAction
→ TextInputAction?
-
Determines the icon for validation in the virtual keyboard
final
-
type
→ TextInputSubType
-
Text input type, determines behavior depending on type
final
-
verticalCrossAlignment
→ CrossAxisAlignment?
-
To override the vertical Column alignment
final
-
verticalMainAlignment
→ MainAxisAlignment?
-
To override the horizontal Column alignment
final