VengamoChatUI class
Constructors
VengamoChatUI ({Key ? key , Widget ? text , required bool isSender , required Color senderBgColor , required Color receiverBgColor , bool isNextMessageFromSameSender = false , required String time , Color timeLabelColor = AppColors.softBlackcolor , bool pointer = true , required Widget ack , String ? imgUrl = "" , Widget ? caption , bool showLoadingOverlay = false , double percentage = 0.0 , VoidCallback ? onImageTap , bool ? isAudio , String ? audioSource , bool ? isLoading , TextStyle ? textStyle , DismissDirectionCallback ? onSwipe , GestureLongPressCallback ? onLongPress , BoxConstraints ? imageStyles , Widget ? messageReply , Color ? messageReplyBgColor , Color ? messageReplyBorderColor , VoidCallback ? onPress , Uint8List ? imageBytes , Widget ? name })
const
Properties
ack
→ Widget
This widget will display message status( sent, delivered or seen).
final
audioSource
→ String ?
Audio source
in this Version we're supporting only remote files, local files in coming version
final
caption
→ Widget ?
Represents the caption or textual description associated with an image.
final
hashCode
→ int
The hash code for this object.
no setter inherited
imageBytes
→ Uint8List ?
The data type of ImageBytes is Uint8List?, which means it can either hold a Uint8List or be null.
final
imageStyles
→ BoxConstraints ?
styles that will be applies on Image.
final
imgUrl
→ String ?
Represents the URL of an image.
final
isAudio
→ bool ?
Boolean for audio message
final
isLoading
→ bool ?
This can be very useful when uploading audio to the server and is not yet done uploading
final
isNextMessageFromSameSender
→ bool
this boolean value will determine if the message is from same user
it has some advantages for example
of removing pointer and margin of group messages or between single message from different user
final
isSender
→ bool
true of false to determine if the message is from you or the other sender
final
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
messageReply
→ Widget ?
message Reply
final
messageReplyBgColor
→ Color ?
the background color applied to the message reply
final
messageReplyBorderColor
→ Color ?
the Border color applied to the message reply
final
name
→ Widget ?
Sender Name
final
onImageTap
→ VoidCallback ?
call back function that will be fired on tap.
final
onLongPress
→ GestureLongPressCallback ?
call back function when the message is long pressed
final
onPress
→ VoidCallback ?
call back function that will be fired on Press.
final
onSwipe
→ DismissDirectionCallback ?
call back function that will be fired when the user swipe
final
percentage
→ double
The percentage
represents the progress of the image upload or download operation.
It indicates the completion percentage of the image transfer process,
providing feedback to the user about the progress of the operation.
The value of percentage
ranges from 0.0 to 1.0, where 0.0 represents no progress,
and 1.0 represents the completion of the operation.
final
pointer
→ bool
this is a speech bubble arrow, it will determine, whether chat bubble will have a pointer/arrow or not.
final
receiverBgColor
→ Color
the background color applied to chat bubble of message from the other user
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
senderBgColor
→ Color
the background color applied to chat bubble of message from you
final
showLoadingOverlay
→ bool
Add this boolean variable to control the visibility of the loading overlay
final
text
→ Widget ?
message text
final
textStyle
→ TextStyle ?
style that will be applied on text;
final
time
→ String
Message time
final
timeLabelColor
→ Color
This is time color
by default Color(0x99000000), but it can be customized to provide good user experience.
final