VMessageInputWidget class
this widget used to render the footer of messages page
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- VMessageInputWidget
Constructors
-
VMessageInputWidget({Key? key, required dynamic onSubmitText(String message), required dynamic onSubmitMedia(List<
VPlatformFile> files), required dynamic onSubmitVoice(MessageVoiceData data), required dynamic onSubmitFiles(List<VPlatformFile> files), required dynamic onSubmitLocation(LocationMessageData data), required dynamic onTypingChange(RoomTypingEnum typing), int maxMediaSize = 50 * 1024 * 1024, Widget? replyWidget, bool autofocus = false, FocusNode? focusNode, Widget mentionItemBuilder(MentionModel)?, Duration maxRecordTime = const Duration(minutes: 30), Future<AttachEnumRes?> onAttachIconPress()?, Widget? stopChatWidget, Future<List< onMentionSearch(String)?, String? googleMapsApiKey, VInputLanguage language = const VInputLanguage(), String googleMapsLangKey = "en"})MentionModel> > -
const
Properties
- autofocus → bool
-
should be true in web to let user directly start chat
final
- focusNode → FocusNode?
-
set text filed focusNode
final
- googleMapsApiKey → String?
-
if not provided the the user cant see the option of send location
final
- googleMapsLangKey → String
-
google maps localizations
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- language → VInputLanguage
-
text-field hint
final
- maxMediaSize → int
-
set max upload files size default it 50 mb
final
- maxRecordTime → Duration
-
set max timeout for recording
final
- mentionItemBuilder → (Widget Function(MentionModel)?)
-
callback if you want to implement custom mention item builder
final
-
onAttachIconPress
→ (Future<
AttachEnumRes?> Function()?) -
callback when user clicked send attachment
final
-
onMentionSearch
→ (Future<
List< Function(String)?)MentionModel> > -
callback when user start add '@' or '@...' if text is empty that means the user just start type '@'
final
-
onSubmitFiles
→ dynamic Function(List<
VPlatformFile> files) -
callback when user send files
final
- onSubmitLocation → dynamic Function(LocationMessageData data)
-
callback when user send location will call only if googleMapsApiKey has value
final
-
onSubmitMedia
→ dynamic Function(List<
VPlatformFile> files) -
callback when user send images or videos or mixed
final
- onSubmitText → dynamic Function(String message)
-
callback when user send text
final
- onSubmitVoice → dynamic Function(MessageVoiceData data)
-
callback when user submit voice
final
- onTypingChange → dynamic Function(RoomTypingEnum typing)
-
callback when user start typing or recording or stop
final
- replyWidget → Widget?
-
widget to render if user select to reply
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stopChatWidget → Widget?
-
widget to render if the chat has been closed my be this user leave group or has banned!
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< VMessageInputWidget> -
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