LiquidGlassConfig class
Configuration class for Liquid Glass appearance
Constructors
-
LiquidGlassConfig({Color? baseColor, double opacity = 0.1, double blurAmount = 10.0, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(20)), bool enableSpecularHighlight = true, double refractionIntensity = 0.5, bool adaptToContent = true, List<
BoxShadow> ? shadows, Border? border, Gradient? gradient, Duration animationDuration = const Duration(milliseconds: 300), Curve animationCurve = Curves.easeInOutCubic, bool enableParallax = true, double parallaxIntensity = 0.1, bool enableCustomShader = false, double distortionAmount = 0.05, bool enableDynamicLight = true, Offset lightPosition = const Offset(0.5, 0.3), bool enableMorphing = true, double glassThickness = 1.0, bool enableChromaticAberration = false, double frostIntensity = 0.0}) -
const
- LiquidGlassConfig.dark()
-
Factory constructor for dark mode
factory
- LiquidGlassConfig.frosted()
-
Factory constructor for frosted glass
factory
- LiquidGlassConfig.simple()
-
Factory constructor for simple usage
factory
- LiquidGlassConfig.subtle()
-
Factory constructor for subtle effect
factory
- LiquidGlassConfig.vibrant()
-
Factory constructor for vibrant effect
factory
Properties
- adaptToContent → bool
-
Enable dynamic color adaptation from content
final
- animationCurve → Curve
-
Animation curve
final
- animationDuration → Duration
-
Animation duration for state changes
final
- baseColor → Color?
-
Base color of the glass. If null, adapts to content
final
- blurAmount → double
-
Blur intensity for background
final
- border → Border?
-
Border configuration
final
- borderRadius → BorderRadius
-
Border radius
final
- distortionAmount → double
-
Distortion amount for glass effect
final
- enableChromaticAberration → bool
-
Chromatic aberration effect
final
- enableCustomShader → bool
-
Custom shader effect
final
- enableDynamicLight → bool
-
Enable dynamic light response
final
- enableMorphing → bool
-
Enable morphing animations
final
- enableParallax → bool
-
Enable parallax effect on movement
final
- enableSpecularHighlight → bool
-
Enable/disable specular highlights
final
- frostIntensity → double
-
Frosted glass effect intensity
final
- glassThickness → double
-
Thickness appearance of the glass
final
- gradient → Gradient?
-
Gradient overlay
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lightPosition → Offset
-
Light source position (for specular highlights)
final
- opacity → double
-
Transparency level (0.0 - 1.0)
final
- parallaxIntensity → double
-
Parallax intensity
final
- refractionIntensity → double
-
Intensity of light refraction effect
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shadows
→ List<
BoxShadow> ? -
Shadow configuration
final
Methods
-
copyWith(
{Color? baseColor, double? opacity, double? blurAmount, BorderRadius? borderRadius, bool? enableSpecularHighlight, double? refractionIntensity, bool? adaptToContent, List< BoxShadow> ? shadows, Border? border, Gradient? gradient, Duration? animationDuration, Curve? animationCurve, bool? enableParallax, double? parallaxIntensity, bool? enableCustomShader, double? distortionAmount, bool? enableDynamicLight, Offset? lightPosition, bool? enableMorphing, double? glassThickness, bool? enableChromaticAberration, double? frostIntensity}) → LiquidGlassConfig -
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.
inherited