diff --git a/app/lib/frontend/templates/package.dart b/app/lib/frontend/templates/package.dart index 265b8040e2..912ee47879 100644 --- a/app/lib/frontend/templates/package.dart +++ b/app/lib/frontend/templates/package.dart @@ -116,15 +116,10 @@ d.Node renderPkgHeader(PackagePageData data) { !data.isLatestStable || showPrereleaseVersion || showPreviewVersion; final pkgView = data.toPackageView(); - final isNullSafe = pkgView.tags.contains(PackageVersionTags.isNullSafe); final metadataNode = packageHeaderNode( packageName: package.name!, publisherId: package.publisherId, published: data.version.created!, - isNullSafe: isNullSafe, - isDart3Compatible: pkgView.tags.contains( - PackageVersionTags.isDart3Compatible, - ), isDart3Incompatible: pkgView.tags.contains( PackageVersionTags.isDart3Incompatible, ), diff --git a/app/lib/frontend/templates/package_misc.dart b/app/lib/frontend/templates/package_misc.dart index 02175f17ac..262f66383d 100644 --- a/app/lib/frontend/templates/package_misc.dart +++ b/app/lib/frontend/templates/package_misc.dart @@ -35,12 +35,6 @@ final nameMatchBadgeNode = packageBadgeNode( color: 'name-match', ); -/// Renders the Dart 3 compatible badge. -final dart3CompatibleNode = packageBadgeNode( - label: 'Dart 3 compatible', - title: 'Package is compatible with Dart 3.', -); - /// Renders the Dart 3 incompatible badge. final dart3IncompatibleNode = packageBadgeNode( label: 'Dart 3 incompatible', diff --git a/app/lib/frontend/templates/views/pkg/header.dart b/app/lib/frontend/templates/views/pkg/header.dart index 6cd9dccdbe..c296da3329 100644 --- a/app/lib/frontend/templates/views/pkg/header.dart +++ b/app/lib/frontend/templates/views/pkg/header.dart @@ -12,8 +12,6 @@ d.Node packageHeaderNode({ required String packageName, required String? publisherId, required DateTime published, - required bool isNullSafe, - required bool isDart3Compatible, required bool isDart3Incompatible, required LatestReleases? releases, }) { @@ -22,7 +20,6 @@ d.Node packageHeaderNode({ d.span(child: d.xAgoTimestamp(published)), d.text(' '), if (publisherId != null) ..._publisher(publisherId), - if (isDart3Compatible) dart3CompatibleNode, if (isDart3Incompatible) dart3IncompatibleNode, if (releases != null) ..._releases(packageName, releases), ]); diff --git a/app/lib/frontend/templates/views/pkg/index.dart b/app/lib/frontend/templates/views/pkg/index.dart index c0f385f548..b819ce175b 100644 --- a/app/lib/frontend/templates/views/pkg/index.dart +++ b/app/lib/frontend/templates/views/pkg/index.dart @@ -149,13 +149,6 @@ d.Node _searchFormContainer({ searchForm: searchForm, title: 'Show only packages with screenshots.', ), - _tagBasedCheckbox( - tagPrefix: 'is', - tagValue: 'dart3-compatible', - label: 'Dart 3 compatible', - searchForm: searchForm, - title: 'Show only packages compatible with Dart 3.', - ), _tagBasedCheckbox( tagPrefix: 'is', tagValue: 'plugin', diff --git a/app/lib/frontend/templates/views/pkg/package_list.dart b/app/lib/frontend/templates/views/pkg/package_list.dart index 52c79ae423..78228ecb6f 100644 --- a/app/lib/frontend/templates/views/pkg/package_list.dart +++ b/app/lib/frontend/templates/views/pkg/package_list.dart @@ -91,9 +91,6 @@ d.Node _packageItem( required bool isLiked, }) { final isFlutterFavorite = view.tags.contains(PackageTags.isFlutterFavorite); - final isDart3Compatible = view.tags.contains( - PackageVersionTags.isDart3Compatible, - ); final isDart3Incompatible = view.tags.contains( PackageVersionTags.isDart3Incompatible, ); @@ -153,7 +150,6 @@ d.Node _packageItem( if (licenseNode != null) d.span(classes: ['packages-metadata-block'], child: licenseNode), if (isFlutterFavorite) flutterFavoriteBadgeNode, - if (isDart3Compatible) dart3CompatibleNode, if (isDart3Incompatible) dart3IncompatibleNode, ]); diff --git a/app/test/frontend/golden/pkg_index_page.html b/app/test/frontend/golden/pkg_index_page.html index 2288ec941c..0a1e6d0567 100644 --- a/app/test/frontend/golden/pkg_index_page.html +++ b/app/test/frontend/golden/pkg_index_page.html @@ -353,23 +353,6 @@