ash_icon.dart.
Constructors
API
Resolution rules
- Color: explicit
color→IconTheme.of(context).color→context.colorTheme.contrastStrong. Tinting usesColorFilter.mode(color, BlendMode.srcIn). - Size: explicit
size→IconTheme.of(context).size. BecauseIconThemeis respected,AshIconslots intoIconButton,NavDestination, andStyledFloatingActionButtonand picks up their icon styling automatically. - Semantics: with
semanticLabel: nullthe SVG setsexcludeFromSemantics: 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).