minimalRingFrame function

Decoration minimalRingFrame(
  1. OutlinedBorder shape, {
  2. Color? wash,
  3. Color? ring,
  4. Color? ground,
  5. double width = 2,
})

A part's press wash and keyboard ring on shape, as one foreground decoration: the wash over the face; with a ring, _focusGap (2 px) of ground outside the edge, opaque, and the ring at width outside that, concentric with the face. The gap is what lets a ring read on a face filled in its own ink (an accent button's accent ring), and on an outlined or quiet face it is only a clean margin. With no ring the shape's own side, if it has one, paints as minimalFrame would. It animates between states (the ring and the gap fade in together).

Implementation

Decoration minimalRingFrame(
  OutlinedBorder shape, {
  Color? wash,
  Color? ring,
  Color? ground,
  double width = 2,
}) => _RingFrame(
  shape: shape,
  wash: wash,
  ring: ring,
  ground: ground,
  width: width,
);