Skip to main content
Renders the custom Ash SVG icons (see Iconography for the full set) with theme-aware tinting. Source: ash_icon.dart.

Constructors

API

Resolution rules

  • Color: explicit color → IconTheme.of(context).color → context.colorTheme.contrastStrong. Tinting uses ColorFilter.mode(color, BlendMode.srcIn).
  • Size: explicit size → IconTheme.of(context).size. Because IconTheme is respected, AshIcon slots into IconButton, NavDestination, and StyledFloatingActionButton and picks up their icon styling automatically.
  • Semantics: with semanticLabel: null the SVG sets excludeFromSemantics: true. Label at the button layer (e.g. IconButton.tooltip) instead — avoids double announcements.

Real usage

Sign-in provider buttons (provider_sign_in_buttons.dart, brand icons with useOriginalColor), activity heroes (activity_hero_image.dart), linked-account platform icons (platform_icon_mapping.dart, including .network for server-driven icons).