Skip to content

Use a more resilient mechanism for showing the icons on the Icons page #11073

@DanTup

Description

@DanTup

The source code for icons.dart looks like this:

  /// <p><i class="material-icons md-36">4k</i> &#x2014; material icon named "4k".</p>
  static const IconData four_k = const IconData(0xe072, fontFamily: 'MaterialIcons');

  /// <p><i class="material-icons md-36">ac_unit</i> &#x2014; material icon named "ac unit".</p>
  static const IconData ac_unit = const IconData(0xeb3b, fontFamily: 'MaterialIcons');

  /// <p><i class="material-icons md-36">access_alarm</i> &#x2014; material icon named "access alarm".</p>
  static const IconData access_alarm = const IconData(0xe190, fontFamily: 'MaterialIcons');

This HTML shows up in the IDE:

Icons

I don't know what's expected here - even if I was able to get the IDE tooltips to handle the HTML (though the docs say avoid HTML) the icons wouldn't render correctly because the CSS isn't being loaded in the tooltips.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: proposalA detailed proposal for a change to Flutterd: api docsIssues with https://api.flutter.dev/f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions