SpeechBalloon class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SpeechBalloon
Constructors
- SpeechBalloon({Key? key, required Widget child, NipLocation nipLocation = NipLocation.bottom, Color color = Colors.white, Color? borderColor, double borderRadius = 2, double? innerBorderRadius, double borderWidth = 2, double height = 50, double width = 60, double nipHeight = defaultNipHeight, Offset offset = Offset.zero})
-
const
Properties
- borderColor → Color?
-
The borderColor of the SpeechBalloon.
This is the border color of SpeechBalloon.
Specify the borderColor to display the border.
Defaultly red.
final
- borderRadius → double
-
The borderRadius of the SpeechBalloon.
The SpeechBalloon is built with a
circular border radius on all 4 corners.
final
- borderWidth → double
-
The borderWidth of the SpeechBalloon.
Defaultly 2
final
- child → Widget
-
The child contained by the SpeechBalloon
final
- color → Color
-
The color of the body of the SpeechBalloon and nip.
Defaultly white.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The explicitly defined height of the SpeechBalloon.
The SpeechBalloon will defaultly enclose its child.
final
- innerBorderRadius → double?
-
The innerBorderRadius of the SpeechBalloon.
In addition, the radius used in the speechbubble
You may need to specify this radius from
time to time due to the height and width.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- nipHeight → double
-
The nipHeight of the SpeechBalloon.
Specify the height of nip
final
- nipLocation → NipLocation
-
The location of the nip of the speech bubble.
final
- offset → Offset
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double
-
The explicitly defined width of the SpeechBalloon.
The SpeechBalloon will defaultly enclose its child.
final
Methods
-
balloon(
) → Widget -
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
-
frontBalloon(
) → Widget -
frontNip(
Offset nipOffset) → Widget -
getNipHeight(
double nipHeight) → double -
nip(
Offset nipOffset) → Widget -
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