stretch property

double get stretch

Press-stretch factor for the shell.

Shared capsules and text pills use GlassNavPinnedMetrics.capsuleStretch (0.15) so wider pills do not over-stretch; circular standalone icons keep GlassNavPinnedMetrics.buttonStretch (0.5).

Implementation

double get stretch => background == GlassBarItemBackground.shared ||
        items.any((item) => item is GlassBarTextItem)
    ? GlassNavPinnedMetrics.capsuleStretch
    : GlassNavPinnedMetrics.buttonStretch;