LiquidStyle class
Configuration for the liquid border aesthetics.
- Available extensions
Constructors
Properties
- baseColor → Color
-
The base color of the "liquid" (usually white/glass).
final
- blurStrength → double
-
NEW: Controls the strength of the background blur.
Defaults to 0.0 (No blur).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- insideGlowIntensity → double
-
Controls the opacity of the "inner glow" near the light source.
0.0 = No glow, 1.0 = Full opacity fill.
final
- intensity → double
-
Controls the contrast of the PRIMARY highlight (Light Source).
0.0 = Flat, 1.0 = High Gloss/Wet look.
final
- lightSource → Alignment
-
The direction the light is coming from.
Defaults to Top-Left (-1, -1).
final
- refractionIntensity → double
-
Controls the intensity of the "refraction" highlight
(usually the bottom-right border opposite the light).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thickness → double
-
The width of the border stroke.
final
- withInnerHighlight → bool
-
If true, draws a sharp, thin inner specular highlight
to simulate a wet edge.
final
- withOuterGlow → bool
-
If true, adds a subtle glow outside the border.
Use sparingly as this adds a blur cost.
final
Methods
-
copyWith(
{double? thickness, double? intensity, double? insideGlowIntensity, double? refractionIntensity, Alignment? lightSource, bool? withInnerHighlight, bool? withOuterGlow, Color? baseColor, double? blurStrength}) → LiquidStyle - Helper to copy with changes
-
copyWith(
{Alignment? lightSource}) → LiquidStyle -
Available on LiquidStyle, provided by the StyleCopy extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- crisp → const LiquidStyle
- Preset: High contrast, "wet" look with outer glow.
- frosted → const LiquidStyle
- Preset: Frosted Glass with blur enabled.
- soft → const LiquidStyle
- Preset: Subtle, barely-there glass edge.
- standard → const LiquidStyle
- Preset: Standard iOS-style frosted border.