FloatingBubbles class

Creates Floating Bubbles in the Foreground of Any widgets.

Inheritance

Constructors

FloatingBubbles({required int noOfBubbles, required List<Color> colorsOfBubbles, required double sizeFactor, required int? duration, BubbleShape shape = BubbleShape.circle, int opacity = 100, PaintingStyle paintingStyle = PaintingStyle.fill, double strokeWidth = 0, BubbleSpeed speed = BubbleSpeed.normal})
Creates Floating Bubbles in the Foreground to Any widgets that plays for duration amount of time.
FloatingBubbles.alwaysRepeating({required int noOfBubbles, required List<Color> colorsOfBubbles, required double sizeFactor, BubbleShape shape = BubbleShape.circle, int opacity = 60, PaintingStyle paintingStyle = PaintingStyle.fill, double strokeWidth = 0, int? duration = 0, BubbleSpeed speed = BubbleSpeed.normal})
Creates Floating Bubbles that always floats and doesn't stop. All Fields Are Required to make a new Instance of FloatingBubbles.

Properties

colorsOfBubbles List<Color>
Add Color to the Bubble
final
duration int?
Number of Seconds the animation needs to draw on the screen. If you want the bubbles to be floating always then use the constructor FloatingBubbles.alwaysRepeating().
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
noOfBubbles int
Number of Bubbles to be shown per second. Should be > 10 and not null. Whenever this value is changed, do a Hot Restart to see the Changes.
final
opacity int
Opacity of the bubbles. Can take the value between 0 to 255.
final
paintingStyle PaintingStyle
Painting Style of the bubbles.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape BubbleShape
Shape of the Bubble. Default value is BubbleShape.circle
final
sizeFactor double
Add Size Factor to the bubbles
final
speed BubbleSpeed
controls the speed at which bubbles appear/disappear
final
strokeWidth double
Stroke Width of the bubbles. This value is effective only if Painting Style is set to PaintingStyle.stroke.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _FloatingBubblesState
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