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

Add maxWidth to tooltip theme for easy text-wrapping #1095

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

klondikedragon
Copy link
Contributor

Fixes #1094. For long tooltips on very wide screens, it's easier for the user to have the text wrap instead of having the tooltip be on a single line. This is implemented by extending the tooltip theme with a new optional maxWidth field. The default behavior is the same as before, so this is not a breaking change.

The example app has been extended to showcase this new capability:
image

Pre-launch Checklist

  • I have updated CHANGELOG.md with my changes
  • I have run "dart format ." on the project
  • I have added/updated relevant documentation

@bdlukaa bdlukaa merged commit b3f9fc1 into bdlukaa:master Jul 30, 2024
3 checks passed
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 this pull request may close these issues.

Support maxWidth in tooltip theme
2 participants