SheenGlassStyle class Glass
One glass recipe: a body gradient over a tint, a backdrop blur with saturation and brightness, a 1 px gradient rim, inner edge lines, a specular highlight and an outer shadow.
You rarely build one: SheenGlassStyles holds the recipes of a theme, and SheenGlassStyle.copyWith adjusts one.
- Mixed-in types
- Annotations
Constructors
-
SheenGlassStyle({required Color tint, required List<
Color> body, required List<double> bodyStops, required double blur, required double saturation, required double brightness, required List<Color> rim, required List<double> rimStops, required double rimAngle, required Color innerTop, double innerTopWidth = .5, Color? innerBottom, Color? innerRing, Color? highlight, Alignment highlightCenter = const Alignment(-.44, -1.2), double highlightStop = .58, required List<BoxShadow> shadows}) -
A glass recipe from its parts.
const
Properties
- blur → double
-
The backdrop blur σ in logical pixels; 0 means no backdrop filter (the glass is opaque).
final
-
body
→ List<
Color> -
The body gradient, top to bottom.
final
-
bodyStops
→ List<
double> -
The stops of body.
final
- brightness → double
-
The backdrop's brightness factor (1 leaves it unchanged).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- highlight → Color?
-
The peak colour of the radial specular highlight from above the top-left corner.
final
- highlightCenter → Alignment
-
Where the highlight is centred.
final
- highlightStop → double
-
Where the highlight has faded out, as a fraction of its radius.
final
- innerBottom → Color?
-
An optional inner bottom edge.
final
- innerRing → Color?
-
An optional hairline ring inside the rim.
final
- innerTop → Color
-
The inner top edge, a specular line.
final
- innerTopWidth → double
-
The width of innerTop.
final
-
rim
→ List<
Color> -
The 1 px rim gradient.
final
- rimAngle → double
-
The rim gradient's angle in CSS degrees (180 runs top to bottom).
final
-
rimStops
→ List<
double> -
The stops of rim.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- saturation → double
-
The backdrop's saturation factor (1 leaves it unchanged).
final
-
shadows
→ List<
BoxShadow> -
The outer shadows.
final
- tint → Color
-
The solid colour under the body gradient (transparent when the gradient is the whole body).
final
Methods
-
copyWith(
{Color? tint, List< Color> ? body, List<double> ? bodyStops, double? blur, double? saturation, double? brightness, List<Color> ? rim, List<double> ? rimStops, double? rimAngle, Color? innerTop, double? innerTopWidth, Color? innerBottom, Color? innerRing, Color? highlight, Alignment? highlightCenter, double? highlightStop, List<BoxShadow> ? shadows}) → SheenGlassStyle - A copy with the given parts replaced.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
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
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override