mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-17 05:43:41 +00:00
fix(ui): restore homepage and GitHub buttons on extension cards
This commit is contained in:
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 SizedBox.square(dimension: 14, child: shad.CircularProgressIndicator())
|
||||||
: const Icon(Icons.download),
|
: 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)
|
if (installed?.settings?.isNotEmpty == true)
|
||||||
shad.GhostButton(
|
shad.GhostButton(
|
||||||
density: shad.ButtonDensity.icon,
|
density: shad.ButtonDensity.icon,
|
||||||
|
|||||||
Reference in new issue
Block a user