[Property Editor] Add a tooltip for the property's default value and documentation#9058
Merged
elliette merged 8 commits intoflutter:masterfrom Mar 25, 2025
Merged
[Property Editor] Add a tooltip for the property's default value and documentation#9058elliette merged 8 commits intoflutter:masterfrom
elliette merged 8 commits intoflutter:masterfrom
Conversation
Member
Author
|
Note: I tried to have the info tooltip in input label (as initially described here: #8891 (comment)) but I couldn't get the gesture detector to recognize a hover and show the tooltip. |
Member
kenzieschmoll
left a comment
There was a problem hiding this comment.
can you add a test that verifies the contents of the new tooltip for a widget property?
Member
Author
Done! |
Comment on lines
+1227
to
+1231
| Whether or not the text should wrap. | ||
|
|
||
| If null, the default value is platform dependent. On TargetPlatform.android, | ||
| the default is true. On TargetPlatform.iOS, false. The remaining platforms | ||
| also default to false. |
Member
There was a problem hiding this comment.
can you use String interpolation here instead? $softWrapDocumentation
Member
Author
There was a problem hiding this comment.
We're also testing that the brackets are correctly removed, so it's not identical to the documentation string.
| Default value: Alignment.bottomLeft | ||
|
|
||
| Documentation: | ||
| How to align the child. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8938
Each property input has an info icon to its left which, when hovered, displays a tooltip with the default value and documentation.