KeyboardActionsItem class
Class to define the focusNode that you pass to your TextField too and other params to customize
the bar that will appear over your keyboard
Constructors
-
KeyboardActionsItem({required FocusNode focusNode, VoidCallback? onTapAction, List<
ButtonBuilder> ? toolbarButtons, bool enabled = true, bool displayActionBar = true, bool displayArrows = true, bool displayDoneButton = true, MainAxisAlignment toolbarAlignment = MainAxisAlignment.end}) -
const
Properties
- displayActionBar → bool
-
true
defaultto display the action barfinal - displayArrows → bool
-
true
defaultto display the arrows to move between the fieldsfinal - displayDoneButton → bool
-
true
defaultto display the Done buttonfinal - enabled → bool
-
true
defaultif the TextField is enabledfinal - focusNode → FocusNode
-
The Focus object coupled to TextField, listening for got/lost focus events
final
-
Builder for an optional widget to show below the action bar.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onTapAction → VoidCallback?
-
Optional callback if the Done button for TextField was tapped
It will only work if
displayDoneButtonistrueandtoolbarButtonsis null or emptyfinal - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toolbarAlignment → MainAxisAlignment
-
Alignment of the row that displays toolbarButtons. If you want to show your
buttons from the left side of the toolbar, you can set toolbarAlignment and
set the value of displayArrows to
falsefinal -
toolbarButtons
→ List<
ButtonBuilder> ? -
Optional widgets to display to the right of the bar/
NOTE:
toolbarButtonsoverride the Done button by defaultfinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited