render/claymorphism/claymorphism_faces library
Claymorphism renderer factories (registered in theme_resolver.dart).
Classes
- ClayDisplayFace
- The Claymorphism display card.
- ClayKeyFace
- Claymorphism key renderer for one theme. A same-family theme change lerps shadows, highlight and sizes (LerpableKeyFace); the tier and the label placement follow the nearer end.
- ClayKeyPainter
- Paints one clay key: the drop shadow (cross-fading to its pressed state with the tint), the face in its shade colour, the inner highlight and the cover clipped to the face, and the long-press fill. Repaints from the motion channels without rebuilds.
- ClayPaintCache
- Shared paints and blur filters of every clay painter (paint runs on the UI thread only, so one set serves every key).
- ClaySquash
-
Paints child (the key label) squashed with the clay face: the
inverse of
PressScale's uniform scale about the centre, then the bottom-anchored squash (ClayKeyFace.squash); only the inverse under Reduce Motion. Repaints on the press and scale channels. - RenderClaySquash
- Render object of ClaySquash.
Functions
-
claymorphismDisplayFaceFor(
ThemeSpec spec, {GlassRendering rendering = GlassRendering.standard}) → DisplayFace? - The display face for a ThemeFamily.claymorphism spec: the pillow card in the surface colour (a foreign surface darker than the body is drawn as a pillow too; the recessed tray is retired).
-
claymorphismKeyFaceFor(
ThemeSpec spec, {GlassRendering rendering = GlassRendering.standard}) → KeyFaceRenderer - The key renderer for a ThemeFamily.claymorphism spec.