mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-07 17:10:29 +00:00
refactor(ui): open extension details from every card
Installed extensions missing from the store index previously had no tap handler on their card, so they kept on-card homepage/GitHub buttons as the only metadata entry. Make all cards open the detail view and drop the homepage/GitHub buttons entirely; details remain the single place for links.
This commit is contained in:
1 parent
f34cb9c971
commit
d94b59b165
1 file changed
-15
@@ -1095,20 +1095,6 @@ class _ExtensionCard extends ConsumerWidget {
|
||||
? const SizedBox.square(dimension: 14, child: shad.CircularProgressIndicator())
|
||||
: const Icon(Icons.download),
|
||||
),
|
||||
// Unlisted extensions have no detail page to open, so keep
|
||||
// their links reachable directly on the card.
|
||||
if (item.store == null && (item.homepage ?? '').isNotEmpty)
|
||||
shad.GhostButton(
|
||||
density: shad.ButtonDensity.icon,
|
||||
onPressed: () => unawaited(launchUrl(Uri.parse(item.homepage!))),
|
||||
child: const Icon(Icons.home_outlined),
|
||||
),
|
||||
if (item.store == null && (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,
|
||||
@@ -1137,7 +1123,6 @@ class _ExtensionCard extends ConsumerWidget {
|
||||
],
|
||||
),
|
||||
);
|
||||
if (item.store == null) return card;
|
||||
return MouseRegion(
|
||||
cursor: SystemMouseCursors.click,
|
||||
child: GestureDetector(
|
||||
|
||||
Reference in new issue
Block a user