Skip to content

Commit

Permalink
Redirect package:flutter_gpu (#7942)
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos authored Aug 15, 2024
1 parent b08cc54 commit a71abd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/lib/package/overrides.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ const redirectPackageUrls = <String, String>{
'https://api.flutter.dev/flutter/flutter_driver/flutter_driver-library.html',
'flutter_driver_extension':
'https://api.flutter.dev/flutter/flutter_driver_extension/flutter_driver_extension-library.html',
'flutter_gpu':
'https://main-api.flutter.dev/flutter/flutter_gpu/flutter_gpu-library.html',
'flutter_localizations':
'https://api.flutter.dev/flutter/flutter_localizations/flutter_localizations-library.html',
'flutter_test':
Expand Down
2 changes: 1 addition & 1 deletion app/lib/search/result_combiner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SearchResultCombiner {
...?flutterSdkMemIndex?.search(query.query!, limit: 2),
];
if (sdkLibraryHits.isNotEmpty) {
// Do not display low SDK scores if the average package hits are more relevant on the page.
// Do not display low SDK scores if the top package hit is more relevant on the page.
//
// Note: we used to pick the lowest item's score for this threshold, but it was not ideal,
// because promoted hit of the exact package name match may have very low score.
Expand Down

0 comments on commit a71abd3

Please sign in to comment.