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

我发现使用在textfield中使用maxLength属性以后,控制台有报错 #245

Open
zjypp opened this issue Dec 11, 2024 · 0 comments

Comments

@zjypp
Copy link

zjypp commented Dec 11, 2024

我发现使用在textfield中使用maxLength属性以后,控制台有报错。
而且原本显示文本框中字数的文字,错位显示到textfield起始的位置。

有碰见类似问题的吗

flutter: _RenderDecoration object was given an infinite size during layout.
This probably means that it is a render object that tries to be as big as possible, but it was put inside another render object that allows its children to pick their own size.
The nearest ancestor providing an unbounded height constraint is: _RenderSingleChildViewport#75342 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
needs compositing
creator: _SingleChildViewport ← IgnorePointer-[GlobalKey#b5358] ← Semantics ← Listener ← _GestureSemantics ← RawGestureDetector-[LabeledGlobalKey#b8aed] ← Listener ← _ScrollableScope ← _ScrollSemantics-[GlobalKey#af001] ← NotificationListener ← Scrollable ← SingleChildScrollView ← ⋯
parentData: (can use size)
constraints: BoxConstraints(w=394.0, h=505.0)
size: MISSING
offset: Offset(0.0, -0.0)
The constraints that applied to the _RenderDecoration were:
BoxConstraints(w=394.0, 505.0<=h<=Infinity)
The exact size it was given was:
Size(394.0, Infinity)

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

No branches or pull requests

1 participant