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
[Question/Bug?] 'text'.text.make()
causes crash when Text('text')
does not
#112
Comments
'text'.text.make()
causes crash when Text('text') does not'text'.text.make()
causes crash when Text('text')
does not
It's an issue with intrinsic widget. Layout builder doesn't support it by default. You can easily fix it by adding .isIntrinsic eg- "text".text.isIntrinsic.make() |
Why does |
It is the same but it uses AutoSizedText to give you a better experience on multi-sized screens and also reduces the chances of overflow issues. |
Ok. Thanks. How does isintrinsic fix it?
…On Thu, 17 Jun 2021, 18:45 Pawan Kumar, ***@***.***> wrote:
It is the same but it uses AutoSizedText to give you a better experience
on multi-sized screens and also reduces the chances of overflow issues.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#112 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6JSVKYG3J34UIPYE7MHMTTTGKZ7ANCNFSM46Y4DXLQ>
.
|
It's just a hack that when you say isIntrinsic, it uses Text rather than AutoSizedText |
(Thanks for the package. It does help to develop UI faster)
Describe the bug
If the following is retuned from the widget build function, it crashes with flutter exception:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect
'header'.text.make()
to behave exactly the same asText('header')
. At least not to cause the exceptionConsole output
Smartphone (please complete the following information):
Additional context
Not sure. Just ask if more information is required.
The text was updated successfully, but these errors were encountered: