GlassTheme class
- Inheritance
-
- Object
- ThemeExtension<
GlassTheme> - GlassTheme
Constructors
- GlassTheme({double blurSigma = 15.0, double borderOpacity = 0.2, double surfaceOpacity = 0.07, Color borderColor = Colors.white, Color surfaceColor = Colors.white})
-
const
- GlassTheme.dark()
-
factory
- GlassTheme.light()
-
factory
Properties
- blurSigma → double
-
final
- borderColor → Color
-
final
- borderOpacity → double
-
final
- effectiveBorderColor → Color
-
no setter
- effectiveSurfaceColor → Color
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- surfaceColor → Color
-
final
- surfaceOpacity → double
-
final
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{double? blurSigma, double? borderOpacity, double? surfaceOpacity, Color? borderColor, Color? surfaceColor}) → GlassTheme -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
lerp(
covariant GlassTheme? other, double t) → GlassTheme -
Linearly interpolate with another ThemeExtension object.
override
-
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
Static Methods
-
resolve(
BuildContext context) → GlassTheme