mirror of
https://github.com/zapstore/zapstore.git
synced 2026-10-05 20:48:24 +00:00
Fix loading issue in app detail screen (would freeze in skeleton state)
This commit is contained in:
@@ -196,6 +196,7 @@ class _AppDetailContent extends HookConsumerWidget {
|
|||||||
final isInstalled = installedPackage != null;
|
final isInstalled = installedPackage != null;
|
||||||
|
|
||||||
// Show skeleton while relationships are loading
|
// Show skeleton while relationships are loading
|
||||||
|
// Always show loading indicator here - relationships are still pending
|
||||||
if (latestRelease == null || latestMetadata == null) {
|
if (latestRelease == null || latestMetadata == null) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
@@ -210,7 +211,7 @@ class _AppDetailContent extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
InstallButton(app: app, release: latestRelease),
|
InstallButton(app: app, release: latestRelease),
|
||||||
_buildFloatingMenu(context, ref, app, isInstalled, isSignedIn),
|
_buildFloatingMenu(context, ref, app, isInstalled, isSignedIn),
|
||||||
if (isLoading) _buildLoadingIndicator(context),
|
_buildLoadingIndicator(context),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user