CometChatMessageInput class
CometChatMessageInput is a component that provides a skeleton layout for contents of CometChatMessageComposer
like TextField, auxiliary options, primary button view and attachment options.
CometChatMessageInput(
placeholderText: "some placeholder",
primaryButtonView: Container(),
secondaryButtonView: GestureDetector(
onTap: () {},
child: Container(),
),
auxiliaryButtonView: Row(
children: <Widget>[],
),
auxiliaryButtonsAlignment: AuxiliaryButtonsAlignment.right,
);
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CometChatMessageInput
Constructors
- CometChatMessageInput({Key? key, String? text, String? placeholderText, dynamic onChange(String)?, MessageInputStyle? style, int? maxLine, Widget? secondaryButtonView, Widget? auxiliaryButtonView, Widget? primaryButtonView, AuxiliaryButtonsAlignment? auxiliaryButtonsAlignment = AuxiliaryButtonsAlignment.right, TextEditingController? textEditingController, FocusNode? focusNode, bool? hideBottomView})
-
const
Properties
- auxiliaryButtonsAlignment → AuxiliaryButtonsAlignment?
-
auxiliaryButtonsAlignment controls position auxiliary button view
final
- auxiliaryButtonView → Widget?
-
auxiliaryButtonView additional ui component apart from primary and secondary
final
- focusNode → FocusNode?
-
focusNode allows to dismiss platform and CometChat UI elements
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideBottomView → bool?
-
hideBottomView hide the bottom toolbar for message input
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxLine → int?
-
maxLine maximum lines allowed to increase in the input field
final
- onChange → (dynamic Function(String)?)
-
onChange callback to handle change in value of text in the input field
final
- placeholderText → String?
-
placeholderText hint text for input field
final
- primaryButtonView → Widget?
-
primaryButtonView is a ui component that would trigger basic functionality
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryButtonView → Widget?
-
secondaryButtonView additional ui component apart from primary
final
- style → MessageInputStyle?
-
style provides style to this widget
final
- text → String?
-
text initial text for the input field
final
- textEditingController → TextEditingController?
-
textEditingController provides control of the input field
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CometChatMessageInput> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited