Skip to content

Group sparkle and welcome text on the onboarding screen#49

Merged
dadachi merged 1 commit intomainfrom
fix-welcome-layout
May 4, 2026
Merged

Group sparkle and welcome text on the onboarding screen#49
dadachi merged 1 commit intomainfrom
fix-welcome-layout

Conversation

@dadachi
Copy link
Copy Markdown
Contributor

@dadachi dadachi commented May 4, 2026

Summary

Substrate review flagged the welcome screen as a broken layout: the AutoAwesome icon used fillMaxSize (stretched across the upper region) and the welcome text was pinned to BottomCenter, producing a large empty gap between them on tall phones — the title looked "jammed at the very bottom of the screen". iOS gets away with the same ZStack-style structure because SwiftUI's resizable Image and platform typography produce a tighter visual cluster; Compose's Icon + BottomCenter text doesn't.

Restructure to a Column with weighted spacers and a fixed-size 220dp sparkle so the icon and title sit together in the upper-middle, matching the iOS visual composition.

Mirrors NativeAppTemplate-Android#63.

Test plan

  • ./gradlew :app:assembleDebug succeeds
  • ./gradlew spotlessKotlinCheck passes
  • Run on emulator (signed-out): sparkle and "Welcome to Native App Template" appear vertically grouped near the screen center, no large empty band between them
  • Confirm Start / Support Website actions in the top app bar still navigate as before

🤖 Generated with Claude Code

The previous layout left the AutoAwesome icon stretched across the
upper region (fillMaxSize, bottom-padded 192dp) and pinned the welcome
text to BottomCenter, producing a large empty gap on tall phones --
substrate review flagged this as a "broken layout" with the title
"jammed at the very bottom of the screen". Restructure to a Column with
weighted spacers and a fixed 220dp sparkle so icon and title sit
together in the upper-middle, mirroring the iOS welcome composition.

Mirrors NativeAppTemplate-Android#63.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dadachi dadachi merged commit f8a1689 into main May 4, 2026
1 check passed
@dadachi dadachi deleted the fix-welcome-layout branch May 4, 2026 02:47
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.

1 participant