TimelineBubble class
The widget to render the bubble for the timeline
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- TimelineBubble
Constructors
- TimelineBubble({Key? key, required DirectionConfig direction, Color bubbleColor = Colors.blue, Color bgColor = Colors.white, Color stripColor = Colors.teal, Widget? icon, String? title, double size = 120, String? subtitle, String? description, TextStyle? titleStyle, TextStyle? subtitleStyle, TextStyle? descriptionStyle, double spaceBetweenItems = 20.0, Widget? titleWidget, Widget? subtitleWidget, Widget? descriptionWidget})
-
Constructor
const
Properties
- bgColor → Color
-
The bubble's background color.
This color should be the same with your Scaffold background color and different from the stripColor
final
- bubbleColor → Color
-
The bubble's color
final
- description → String?
-
/// The bubble's description
final
- descriptionStyle → TextStyle?
-
The TextStyle of the description text
final
- descriptionWidget → Widget?
-
Provide your custom description widget if you don't want to use the default description widget
final
- direction → DirectionConfig
-
The bubble's content direction (left or right)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget?
-
The icon that will display in the middle of the bubble
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double
-
The size of the bubble
final
- spaceBetweenItems → double
-
The distance between items in the timeline
final
- stripColor → Color
-
The color of the timeline
final
- subtitle → String?
-
The bubble's subtitle
final
- subtitleStyle → TextStyle?
-
The TextStyle of the subtitle text
final
- subtitleWidget → Widget?
-
Provide your custom subtitle widget if you don't want to use the default subtitle widget
final
- title → String?
-
The bubble's title
final
- titleStyle → TextStyle?
-
The TextStyle of the title text
final
- titleWidget → Widget?
-
Provide your custom title widget if you don't want to use the default title 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