Closed rock3r closed 5 months ago
LGTM, but with some hardcoded numbers, what's the source for these magic numbers?
The numbers are coming from the pre-existing code — I had to duplicate a bunch of logic on our side to make it easier for users to use. The numbers were derived from the JBFont
typography presets for headings, and the Int UI specs.
This is a workaround to the fact that
ClickableText
swallows all clicks, since itsonClick
lambda has no way of saying if it did handle a click.Hopefully this won't be needed anymore when we move to Compose 1.7, which brings in a proper
LinkAnnotation
.