Skip to content

Let Spark exit screen content scroll behind the header #2068

Backlog

Description

@jvsena42

The Force Transfer (Spark exit) screens put AppTopBar above the scrolling content in a ScreenColumn, so the header acts as an opaque band: content is cut off at its bottom edge instead of scrolling behind it. Other scrolling screens let the content pass under a translucent, blurred header.

Where: app/src/main/java/to/bitkit/ui/settings/lightning/. The Progress screen ("Transfer Funds", SparkExitProgressScreen.kt:99) is the one that scrolls the most. Intro, Quote, Confirm, Funding, Pay and FeeBump ("Force Transfer Funds") have the same structure.

Pattern to follow: SavingsWalletScreen.kt:84-130 (also SpendingWalletScreen, HardwareWalletScreen):

  • a hazeSource(hazeState) background layer as a sibling of the top bar;
  • AppTopBar with hazeEffect(state = hazeState) { mask = TopBarGradient }, background(TopBarGradient), zIndex(1f) and the status-bar insets;
  • the scrolling content starting with StatusBarSpacer() + TopBarSpacer(), so it begins below the bar and scrolls under it.

Seen on: emulator, master at 90b8e37 (PR #2056 build), Progress screen with the savings retry offer, scrolled down:

transfer-funds-header

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