strokesOf static method

EdgeInsets strokesOf(
  1. Fluent2InputAppearance appearance
)

The room the strokes of a frame in appearance take inside it, which padding stands inside: the hairline at every side, at the bottom alone for Fluent2InputAppearance.underline (Fluent's underline field has no top, left or right border, so its words start at the root's padding from the edge and centre in the height over the stroke).

Implementation

static EdgeInsets strokesOf(Fluent2InputAppearance appearance) =>
    appearance == Fluent2InputAppearance.underline
    ? const EdgeInsets.only(bottom: Fluent2ChromeMetrics.hairline)
    : const EdgeInsets.all(Fluent2ChromeMetrics.hairline);