FloatingChatButton class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FloatingChatButton
Constructors
- FloatingChatButton({Widget? background, required dynamic onTap(BuildContext), bool shouldPutWidgetInCircle = true, Widget? chatIconWidget, Color? chatIconColor, Color? chatIconBackgroundColor, double? chatIconSize, double? chatIconWidgetHeight, double? chatIconWidgetWidth, Color chatIconBorderColor = Colors.blue, double chatIconBorderWidth = 4, Widget? messageWidget, Duration? messageCrossFadeTime, double messageVerticalSpacing = 10, Color? messageBackgroundColor, TextStyle? messageTextStyle, Widget? messageTextWidget, String? messageText, double? messageBorderWidth, Color? messageBorderColor, ShowMessageParameters? showMessageParameters, double chatIconVerticalOffset = 30, double chatIconHorizontalOffset = 30, Key? key})
Properties
- background → Widget?
-
The FloatingChatButton can be stacked on top of another view inside its
parent. This specifies the widget that it should be stacked on top of
final
- chatIconBackgroundColor → Color?
-
final
- chatIconBorderColor → Color
-
If shouldPutWidgetInCircle is true, this specifies the border colour around
the circle
final
- chatIconBorderWidth → double
-
If shouldPutWidgetInCircle is true, this specifies the border width around
the circle
final
- chatIconColor → Color?
-
final
- chatIconHorizontalOffset → double
-
The horizontal distance between the chat icon and it's bounds in one of its
default resting spaces
final
- chatIconSize → double?
-
final
- chatIconVerticalOffset → double
-
The vertical distance between the chat icon and it's bounds in one of its
default resting spaces
final
- chatIconWidget → Widget?
-
Used to specify custom chat icon widget. If not specified, the material chat icon
widget will be used
final
- chatIconWidgetHeight → double?
-
final
- chatIconWidgetWidth → double?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- messageBackgroundColor → Color?
-
When messageWidget is not set, this sets the color for the default message
background
final
- messageBorderColor → Color?
-
Color of the border around the message
final
- messageBorderWidth → double?
-
The width of the border around the message. Defaults to no border
final
- messageCrossFadeTime → Duration?
-
The duration over which the message appears and disappears (if it isn't
permanently shown or unshown
final
- messageText → String?
-
If messageWidget and messageTextWidget are not set, this specifies the
text to use in the default message text widget
final
- messageTextStyle → TextStyle?
-
When messageWidget and messageTextWidget are not set, this sets the style
for the default message text widget
final
- messageTextWidget → Widget?
-
This replaces only the text widget of the message widget and is shown within
the message widget
final
- messageVerticalSpacing → double
-
Vertical spacing between the message and the chat icon
final
- messageWidget → Widget?
-
This fully replaces the default message widget
final
- onTap → dynamic Function(BuildContext)
-
Must give the constraints that the chat widget is built under
Function called when the chat icon (not the message) is tapped
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldPutWidgetInCircle → bool
-
If true, the chat icon widget will be clipped to be a circle with a
border around it
final
- showMessageParameters → ShowMessageParameters?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → FloatingChatButtonState -
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