clragon / swan

bring elegance to your flutter discussions
https://discord.gg/rflutterdev
MIT License
3 stars 0 forks source link

Dartdoc: Showing wrong/unrelated documentation on important keywords search #22

Closed brainwo closed 5 months ago

brainwo commented 6 months ago

There are few instances where documentation search returns a random unrelated documentation from a random package instead of the actual documentation page that should appear first. Here is a recent example:

Command:

![Visibility]

Expected result:

https://api.flutter.dev/flutter/widgets/Visibility-class.html

Actual result:

https://api.flutter.dev/flutter/package-material_color_utilities_scheme_variant/package-material_color_utilities_scheme_variant-library.html

Workaround:

![widgets.Visibility]

This isn't the case with the search feature in api.flutter.dev which has the correct top result. While having workaround isn't bad, the workaround isn't memorable enough to get use to, ended up trying bunch of commands to get it working, some times completely never return the intended documentation page.