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

Tooltip does not work with TextField #13

Closed
stargazing-dino opened this issue Jun 22, 2021 · 1 comment
Closed

Tooltip does not work with TextField #13

stargazing-dino opened this issue Jun 22, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@stargazing-dino
Copy link
Owner

════════ Exception caught by rendering library ═════════════════════════════════
The following assertion was thrown during performLayout():
The _RenderDecoration class does not support dry layout.

Layout requires baseline metrics, which are only available after a full layout.
The relevant error-causing widget was
TooltipOverlay
../…/src/just_the_tooltip.dart:227
When the exception was thrown, this was the stack
#0      RenderBox.debugCannotComputeDryLayout.<anonymous closure>
package:flutter/…/rendering/box.dart:1901
#1      RenderBox.debugCannotComputeDryLayout
package:flutter/…/rendering/box.dart:1911
#2      _RenderDecoration.computeDryLayout
package:flutter/…/material/input_decorator.dart:1300
#3      RenderBox._computeDryLayout
package:flutter/…/rendering/box.dart:1824
#4      RenderBox.getDryLayout.<anonymous closure>
package:flutter/…/rendering/box.dart:1813
#5      _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:311:23)
#6      RenderBox.getDryLayout
package:flutter/…/rendering/box.dart:1813
#7      RenderProxyBoxMixin.computeDryLayout
package:flutter/…/rendering/proxy_box.dart:108
#8      RenderBox._computeDryLayout
package:flutter/…/rendering/box.dart:1824
#9      RenderBox.getDryLayout.<anonymous closure>
package:flutter/…/rendering/box.dart:1813

This is probably because I'm calling getDryLayout on the child and it doesn't have that available for textfields. I think there's a debug version available that knows though isn't there?

@stargazing-dino stargazing-dino added the bug Something isn't working label Jun 22, 2021
@stargazing-dino
Copy link
Owner Author

I now get the size of children using intrinsic size so that dryLayout is never called

Fixed in b787beb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant