GlossFace class
How a glazed face looks at one moment: what GlossSurface paints and what AnimatedGlossSurface moves between.
Its lift says how it is moulded: 1 raised (a key, a bead: a drop shadow below, a specular lens on its upper part), 0 level (a panel), -1 sunken (a well, a slot: the rim's shade along its top, a light lip along its foot). travel is how far a raised face is pressed home.
- Mixed-in types
- Annotations
Constructors
- GlossFace({required Color top, required Color middle, required Color bottom, required Color foreground, Color edge = _clear, Color glow = _clear, Color shade = const Color(0xFF14283C), Color lip = _clear, double lens = 0, double lift = 0, double travel = 0, Color focus = _clear, double? radius, BorderRadius? corners})
-
A face glazed
toptobottomthroughmiddle.const - GlossFace.gel(GlossColors colors, {double? radius})
-
The jade gel key in
colors: raised, glossy, lit from inside.factory - GlossFace.pearl(GlossColors colors, {double? radius})
-
A pearl key or bead in
colors: raised, white-glazed.factory - GlossFace.pearlOff(GlossColors colors, {double? radius})
-
A pearl part that is off in
colors: lower, its words clouded, no band of light; by night sunk halfway to the page, so it never reads as a grey twin of a lit pearl.factory - GlossFace.porcelain(GlossColors colors, {double? radius})
-
A level porcelain tile in
colors: a card, a panel. A glazed rim and a soft shadow under it, a light line along its top.factory - GlossFace.ruby(GlossColors colors, {double? radius})
-
The ruby gel of a destructive confirm in
colors.factory - GlossFace.well(GlossColors colors, {double? radius})
-
A well pressed into the porcelain in
colors: a field, a group's floor, a slot, a socket.factory
Properties
- bottom → Color
-
The glaze at the foot.
final
- corners → BorderRadius?
-
Each corner's own radius, over radius: a key moulded as one half of
a pair (a split key), round on its outer side only.
final
- edge → Color
-
The rim round the glaze. Clear for a part with none.
final
- focus → Color
-
The focus halo's colour (paintGlossHalo); clear when not focused.
Its lens brightens with it.
final
- foreground → Color
-
The words and glyphs on the face.
final
- glow → Color
-
The light glowing up from the foot inside the glaze.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- lens → double
-
The specular lens's strength on a raised face, 0 to 1.
final
- lift → double
-
How it is moulded: 1 raised, 0 level, -1 sunken.
final
- lip → Color
-
The light caught along a sunken face's lower rim, or along a level
face's top.
final
- middle → Color
-
The glaze at the middle, where words sit.
final
- radius → double?
-
The corner radius; null for a capsule or a circle (half the short side).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shade → Color
-
The colour of the shadow it casts (raised) or its rim casts on it
(sunken).
final
- top → Color
-
The glaze at the top edge.
final
- travel → double
-
How far a raised face is pressed home, 0 to 1.
final
Methods
-
copyWith(
{Color? top, Color? middle, Color? bottom, Color? foreground, Color? edge, Color? glow, Color? shade, Color? lip, double? lens, double? lift, double? travel, Color? focus, double? radius, BorderRadius? corners}) → GlossFace - A copy with the given fields replaced.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
glazed(
Color fill) → GlossFace -
This face glazed all over in
fill(a part'sstyle.fill), keeping its light: the top a little lighter, the foot a little darker. -
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