of static method
Resolve icon sizes for the active FormFactor. Expanded / large tighten for a refined desktop chrome; embedded bumps ×1.3 for gloved / industrial touch targets.
Implementation
static AppIconSizesScale of(BuildContext context) {
switch (FormFactor.of(context)) {
case FormFactor.compact:
return _compact;
case FormFactor.medium:
return _medium;
case FormFactor.expanded:
case FormFactor.large:
case FormFactor.extraLarge:
return _desktop;
case FormFactor.embedded:
return _embedded;
}
}