minimalCapLabel function

Widget minimalCapLabel(
  1. Widget label
)

label (one line) drawn so its capitals' middle is its box's middle, so a face that centres the box centres the capitals: a button's, a tab's, a segment's, a chip's, a menu item's, a select's, a badge's, a one-line row's and a title bar's. Never around an icon.

Implementation

Widget minimalCapLabel(Widget label) =>
    DesignCapCenter(capHeightFactor: minimalCapHeight, child: label);