CometChatCallBubble class
CometChatCallBubble is a widget that displays the call information and a button to join the call.
CometChatCallBubble(
icon: Icon(Icons.call),
title: 'Call',
buttonText: 'Call',
onTap: (context) {
print('Call');
},
callBubbleStyle: CallBubbleStyle(
background: Colors.blue,
iconTint: Colors.grey,
titleStyle: TextStyle(
color: Colors.red,
fontSize: 16,
fontWeight: FontWeight.bold,
),
subtitleStyle: TextStyle(
color: Colors.red,
fontSize: 14,
fontWeight: FontWeight.bold,
),
buttonTextStyle: TextStyle(
color: Colors.white, fontSize: 14, fontWeight: FontWeight.bold
),
),
theme: cometChatTheme,
alignment: BubbleAlignment.left,
);
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CometChatCallBubble
Constructors
- CometChatCallBubble({Key? key, Widget? icon, String? title, String? buttonText, dynamic onTap(BuildContext)?, CometChatCallBubbleStyle? style, BubbleAlignment? alignment, double? height, double? width, String? subtitle, String? iconUrl})
-
CometChatCallBubble constructor requires
icon,title,onClick,styleand theme while initializing.const
Properties
- alignment → BubbleAlignment?
-
alignment will be used to align the widget to left or right of the CometChatMessageList
final
-
buttonText the text to be displayed on the button
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
height sets the height of the widget
final
- icon → Widget?
-
icon to show in the leading view of the bubble
final
- iconUrl → String?
-
iconUrl icon url to be displayed if icon is not provided
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onTap → dynamic Function(BuildContext)?
-
onTap to execute some task on tapping of the button
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → CometChatCallBubbleStyle?
-
style will be used to customize the appearance of the widget
final
- subtitle → String?
-
subtitle subtitle to be displayed , default is ''
final
- title → String?
-
title title to be displayed , default is ''
final
- width → double?
-
width sets the width of the widget
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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, int wrapWidth = 65}) → 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