SpeechBubble class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SpeechBubble
Constructors
- SpeechBubble({Key? key, required Widget child, NipLocation nipLocation = NipLocation.BOTTOM, Color color = Colors.redAccent, double borderRadius = 4.0, double? height, double? width, EdgeInsetsGeometry? padding, double nipHeight = defaultNipHeight, Offset offset = Offset.zero})
- Creates a widget that emulates a speech bubble. Could be used for a tooltip, or as a pop-up notification, etc.
Properties
- borderRadius → double
-
The borderRadius of the SpeechBubble.
The SpeechBubble is built with a
circular border radius on all 4 corners.
final
- child → Widget
-
The child contained by the SpeechBubble
final
- color → Color
-
The color of the body of the SpeechBubble and nip.
Defaultly red.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
The explicitly defined height of the SpeechBubble.
The SpeechBubble will defaultly enclose its child.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- nipHeight → double
-
The nip height
final
- nipLocation → NipLocation
-
The location of the nip of the speech bubble.
final
- offset → Offset
-
final
- padding → EdgeInsetsGeometry?
-
The padding between the child and the edges of the SpeechBubble.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double?
-
The explicitly defined width of the SpeechBubble.
The SpeechBubble will defaultly enclose its child.
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
-
getNipHeight(
double nipHeight) → double -
nip(
Offset nipOffset) → Widget -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
speechBubble(
) → Widget -
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