GoogleLiquidWaveIndicator class
Google Material 3 Liquid Wave Indicator.
A dynamic fluid container where multi-layer animated sinusoidal waves rise and fall according to progress.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- GoogleLiquidWaveIndicator
Constructors
-
GoogleLiquidWaveIndicator({Key? key, required double value, LiquidShape shape = LiquidShape.circle, Path customShapePath(Size size)?, Color? color, Color? secondaryColor, List<
Color> ? gradientColors, Color? backgroundColor, Color? borderColor, double borderWidth = 2.5, double waveAmplitude = 6.0, double wavelength = 50.0, double speed = 1.0, Widget? center, double? width, double? height, double borderRadius = 16.0}) -
const
- GoogleLiquidWaveIndicator.battery({Key? key, required double value, double width = 80, double height = 130, Color? color, Widget? center})
-
Battery shape preset.
factory
- GoogleLiquidWaveIndicator.gemini({Key? key, required double value, LiquidShape shape = LiquidShape.circle, double? width, double? height, Widget? center, double waveAmplitude = 7.0})
-
Gemini AI Iridescent liquid indicator.
factory
- GoogleLiquidWaveIndicator.googleColors({Key? key, required double value, LiquidShape shape = LiquidShape.circle, double? width, double? height, Widget? center, double waveAmplitude = 6.0})
-
Google 4-Color gradient liquid container.
factory
Properties
- backgroundColor → Color?
-
Container background/empty color.
final
- borderColor → Color?
-
Border/outline stroke color.
final
- borderRadius → double
-
Corner radius when shape is LiquidShape.roundedRectangle.
final
- borderWidth → double
-
Border stroke thickness.
final
- center → Widget?
-
Optional center widget (e.g. percentage text or icon).
final
- color → Color?
-
Primary wave liquid color.
final
- customShapePath → Path Function(Size size)?
-
Custom path clip if shape is not suitable.
final
-
gradientColors
→ List<
Color> ? -
Gradient fill for liquid.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
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
- secondaryColor → Color?
-
Secondary background wave fluid color for depth/froth.
final
- shape → LiquidShape
-
Shape of the container mask.
final
- speed → double
-
Speed multiplier for the liquid wave animation. Default is 1.0.
final
- value → double
-
Progress value between 0.0 and 1.0.
final
- waveAmplitude → double
-
Height of the surface sinusoidal waves in dp. Default is 6.0.
final
- wavelength → double
-
Wavelength of the liquid waves in dp. Default is 50.0.
final
- width → double?
-
Width and height dimension constraints.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< GoogleLiquidWaveIndicator> -
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, 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