Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UILabel occupy all #2

Closed
iosephmagno opened this issue Jun 5, 2022 · 2 comments · Fixed by #4
Closed

UILabel occupy all #2

iosephmagno opened this issue Jun 5, 2022 · 2 comments · Fixed by #4

Comments

@iosephmagno
Copy link

UIlabel shoul occupy only the space required to display text (like flutter text), and not fill in the entire space. Pic and demo code attached.

https://github.com/indjec/ui-label

46C50D2D-CBDD-4A1F-8BEF-D3E6AA4C603D

@iosephmagno
Copy link
Author

iosephmagno commented Jun 16, 2022

It seems it might be a little issue that breaks UIlabel intrinsic width in the native code. Width is defined but noticed an InvalidateIntrinsicContextSize somewhere and maybe it is it.
https://github.com/collinjackson/flutter_native_label/blob/main/ios/Classes/NativeLabel.m

Also, Size is broken in the constructor
B6FA3EF8-AE23-4878-B66D-DE552F90B29D

@collinjackson
Copy link
Owner

Using the branch from #4, here's what it looks like

Screen Shot 2022-06-16 at 11 07 59 AM

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 a pull request may close this issue.

2 participants