Skip to content

Conversation

@ovitrif
Copy link
Collaborator

@ovitrif ovitrif commented Oct 10, 2025

Fixes #398

Description

This PR fixes the transitions issue observed on some onboarding screens, by adding background color to their main container component.

Preview

onboarding.mp4

QA Notes

Navigate thru each onboarding screen, expect no repro for the bug from the issue's recording.

@ovitrif ovitrif requested a review from jvsena42 October 10, 2025 21:03
@ovitrif ovitrif enabled auto-merge October 10, 2025 21:04
@ovitrif ovitrif self-assigned this Oct 13, 2025
@jvsena42 jvsena42 requested a review from Copilot October 13, 2025 14:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes transition issues on onboarding screens by adding proper background colors to their main container components and standardizing the use of a shared screen() modifier instead of manual fillMaxSize() and systemBarsPadding() calls.

  • Refactored the screen() modifier in Modifiers.kt to support custom WindowInsets configuration
  • Updated all onboarding screens to use the shared screen() modifier for consistent styling and behavior
  • Replaced manual layout modifiers with the centralized approach for better maintainability

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Modifiers.kt Enhanced screen() modifier to accept optional WindowInsets parameter and use windowInsetsPadding()
OnboardingSlidesScreen.kt Replaced manual layout modifiers with screen() modifier and cleaned up parameter ordering
IntroScreen.kt Updated to use screen(noBackground = true) instead of manual modifiers
CreateWalletWithPassphraseScreen.kt Applied screen() modifier and replaced Spacer with VerticalSpacer for consistency
CreateWalletScreen.kt Used screen(insets = null) and cleaned up trailing comma formatting

Comment on lines 197 to +198
modifier: Modifier = Modifier,
disclaimerText: String? = null,
Copy link

Copilot AI Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parameter reordering should be avoided unless necessary for API consistency. The disclaimerText parameter was moved from before modifier to after it, which could break existing callers that rely on positional arguments.

Suggested change
modifier: Modifier = Modifier,
disclaimerText: String? = null,
disclaimerText: String? = null,
modifier: Modifier = Modifier,

Copilot uses AI. Check for mistakes.
Copy link
Member

@jvsena42 jvsena42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ovitrif ovitrif merged commit 53f39ce into master Oct 13, 2025
18 of 24 checks passed
@ovitrif ovitrif deleted the fix/onboarding-transitions branch October 13, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Screen Transition issue in Onboarding

3 participants