fix(ui): restore homepage and GitHub buttons on extension cards

This commit is contained in:
Levi committed 2026-09-19 20:55:22 +08:00
1 parent 04ebca60cf
commit 2e5f8948be
1 file changed
+12
@@ -1083,6 +1083,18 @@ class _ExtensionCard extends ConsumerWidget {
? const SizedBox.square(dimension: 14, child: shad.CircularProgressIndicator())
: const Icon(Icons.download),
),
if ((item.homepage ?? '').isNotEmpty)
shad.GhostButton(
density: shad.ButtonDensity.icon,
onPressed: () => unawaited(launchUrl(Uri.parse(item.homepage!))),
child: const Icon(Icons.home_outlined),
),
if ((item.repoUrl ?? '').isNotEmpty)
shad.GhostButton(
density: shad.ButtonDensity.icon,
onPressed: () => unawaited(launchUrl(Uri.parse(item.repoUrl!))),
child: const Icon(Icons.code),
),
if (installed?.settings?.isNotEmpty == true)
shad.GhostButton(
density: shad.ButtonDensity.icon,