padding property
margin applies to 📚 SurfaceLayer.BASE and the 🌟 Surface
as a whole.
- Consider Filter.extendBaseFilter which, if
true
, has the BackdropFilter for 📚 SurfaceLayer.BASE extend to cover the Surface.margin insets.
padding is always ignored by the 📚 SurfaceLayer.BASE,
because its padding
is determined by Peek.peek.
See 🔛 Shape.padLayer, however, for options on how to distribute the padding between (default) SurfaceLayer.CHILD or SurfaceLayer.MATERIAL.
- Special case where
padLayer == SurfaceLayer.BASE
splits the padding between 📚MATERIAL
and 📚CHILD
SurfaceLayers.
Implementation
final EdgeInsets margin, padding;