Skip to content

bug: Android back button closes demo app after wallet creation #122

Description

@Shamsudeen12

Summary

On bdk_demo after generating a wallet, tapping the Android system back button closes the app, but the arrow icon at the top left of the screen works correctly (goes back to the previous screen)

Expected UX: The Android system back button should behave like the arrow icon at the top of the screen

Current behavior

Generate a new wallet, click the Android system back button after, the app closes

Relevant code today:

  • bdk_demo/lib/features/home/home_page.dart — Active wallet home
  • bdk_demo/lib/features/wallet_setup/wallet_choice_page.dart — Root bdk_demo page

Expected behavior

  1. Primary Home balance reflects confirmed / trusted-spendable funds (so it stays 0 while the only UTXO is untrusted pending).
  2. Pending transaction display below the Send/Receive row when trustedPending / untrustedPending (or pending txs) are non-zero — e.g. "+2000 sat pending" with link into Transaction History/detail.
  3. After confirmation + sync, pending section clears and primary balance updates.

Why this matters

Purely UX purposes

Suggested approach (non-binding)

  • Replace the context.go(AppRoutes.home); in the create_wallet_page.dart with context.push(AppRoutes.home);

Acceptance criteria

  • The Android system back button after creating a new wallet should take the users to the previous screen

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions