campusMapAreaLabelViewportScale function
- double width
Enlarges labels smoothly in wide map views, up to 1.8 times their base size.
Compact views retain their existing size. Uses logical map width so desktop window resizing works independently of pixel density and system text scaling.
Implementation
double campusMapAreaLabelViewportScale(double width) =>
1 + ((width - navigationRailBreakpoint) / 600).clamp(0.0, 0.8);