peek property
The 🔲 peek is a double
applied as padding
to
and insetting 📚 SurfaceLayer.MATERIAL.
- It may be considered to function like a border for the Surface.child content.
- Note that Surface does not currently support actual Borders.
- To give a border to a Surface, provide a Surface as a
child
to a DecoratedBox or Container.
Having declared a side(s) to receive special treatment by passing 🔀 peekAlignment, a 📏 peekRatio defines the scale by which to multiply this (these) edge inset(s).
- Defaults to thicker
peekRatio == 2.0
- A larger
peekRatio
creates a more dramatic effect - Thinner side(s) possible by passing
0 > peekRatio > 1
(More than one side is affected by a corner-set Alignment
,
such as Alignment.bottomRight.)
Implementation
final double peek, peekRatio;