dart-lang / dartdoc

API documentation tool for Dart.
https://pub.dev/packages/dartdoc
BSD 3-Clause "New" or "Revised" License
473 stars 119 forks source link

Add filtering feature for icon constants #2932

Open jmagman opened 2 years ago

jmagman commented 2 years ago

Request for the ability to filter icon contants in API docs by name

https://api.flutter.dev/flutter/cupertino/CupertinoIcons-class.html https://api.flutter.dev/flutter/material/Icons-class.html

We've (@bdlukaa and @henry2man) just implemented a new Icon Gallery for FluentUI toolkit (https://pub.dev/packages/fluent_ui), you can see it in action:

  1. Go to https://bdlukaa.github.io/fluent_ui/
  2. On the side menu, press "Icons"
Captura de pantalla 2022-02-03 a las 11 38 05

One of the features I absolutely love from our new Icon gallery is the ability to filter the icons by name (please notice the upper right search box). This feature is inspired by the original Cupertino Icon Gallery ( take the wayback machine and see it in action in https://shuuji3.xyz/flutter-packages/third_party/packages/cupertino_icons/)

Originally posted by @henry2man in https://github.com/flutter/flutter/issues/88754#issuecomment-1028847737

guidezpl commented 2 years ago

For Material icons, I would advise using the excellent https://fonts.google.com/icons search instead (https://github.com/flutter/flutter/pull/102808). It does normal search, plus each icon has an additional set of keywords associated with it, such that knowing an icon's exact name isn't necessary.