fix(wallet): bottom-align labels on Spread TileButtons - #1245
Merged
Conversation
The Spread TileButton now uses Arrangement.SpaceBetween so the icon pins to the top and the label to the bottom; the tile's height becomes the gap, matching iOS. The wallet Add Money / Discover Currencies tiles switch from an IntrinsicSize.Min row (which sized the tiles to content, leaving no gap on the two-line card and top-aligning the one-line label) to a width-proportional aspectRatio(1.45f). Both tiles are then equal height and tall enough for the labels to bottom-align whether they wrap to one or two lines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Make the wallet's Spread action tiles match iOS: icon top-left, label bottom-left, labels bottom-aligned across tiles even when one wraps to two lines.
TileButtonSpread usesArrangement.SpaceBetween— icon pins top, label pins bottom; the tile height is the gap.IntrinsicSize.Minrow (tiles were only as tall as content → no gap on the 2-line card, and the 1-line label sat top-aligned) toModifier.weight(1f).aspectRatio(1.45f). Equal height, width-proportional like iOS, tall enough for the labels to bottom-align.Test plan
./gradlew :apps:flipcash:app:compileDebugKotlinpasses.