Skip to content

Pass onTextLayout to BasicText#185

Merged
alexstyl merged 2 commits intocomposablehorizons:mainfrom
kend1e:main
Jan 2, 2026
Merged

Pass onTextLayout to BasicText#185
alexstyl merged 2 commits intocomposablehorizons:mainfrom
kend1e:main

Conversation

@kend1e
Copy link
Copy Markdown
Contributor

@kend1e kend1e commented Dec 31, 2025

Added onTextLayout callback parameter to the Text composable.

This callback returns information after the layout is calculated. For example, it helps detect overflow and track other changes.

BasicText supports this parameter, but it hasn't been exposed for the higher-level Text.

@kend1e kend1e requested a review from alexstyl as a code owner December 31, 2025 13:02
Copy link
Copy Markdown
Member

@alexstyl alexstyl left a comment

Choose a reason for hiding this comment

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

Let's move the parameter to be not the last parameter. Trailing lambdas are for content parameters.

Other than that it looks good

@kend1e kend1e requested a review from alexstyl December 31, 2025 15:32
@alexstyl
Copy link
Copy Markdown
Member

alexstyl commented Jan 2, 2026

LGTM. Let's merge this

@alexstyl alexstyl merged commit 0126faa into composablehorizons:main Jan 2, 2026
8 of 10 checks passed
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.

2 participants