Skip to content

ui: "invoice not available" placeholder flashes briefly while loading pending mint invoice #53

@Forte11Cuba

Description

@Forte11Cuba

When opening a Lightning incoming transaction detail that has no saved metadata, _loadPendingMintInvoice() is called asynchronously. During the await, the UI briefly shows the "invoice not available" placeholder before replacing it with the actual invoice once loaded.

This causes a visual flash that can be confusing.

Suggested fix:
Add a _isLoadingPendingInvoice flag to suppress the placeholder while the async lookup is in progress.

Affected file: lib/screens/9_history/history_screen.dart

Severity: Low cosmetic only, no functional impact

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions