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

Improve the docs for Text and RichText #3507

Merged
merged 1 commit into from
Apr 22, 2016
Merged

Conversation

abarth
Copy link
Contributor

@abarth abarth commented Apr 22, 2016

Fixes #3503

@abarth
Copy link
Contributor Author

abarth commented Apr 22, 2016

@Hixie

assert(!_needsLayout && "Please call layout() before paint() to position the text before painting it." is String);
assert(() {
if (_needsLayout)
throw new FlutterError('Please call layout() before paint() to position the text before painting it.');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add 'TextPainter.paint called when text geometry was not yet calculated.\n' before the 'Please...' text.

@Hixie
Copy link
Contributor

Hixie commented Apr 22, 2016

LGTM

@Hixie
Copy link
Contributor

Hixie commented Apr 22, 2016

filed #3509 about what we discussed

@abarth abarth merged commit 8ac9cc4 into flutter:master Apr 22, 2016
@abarth abarth deleted the text_docs branch April 22, 2016 23:53
@abarth
Copy link
Contributor Author

abarth commented Apr 23, 2016

I think I missed like half these comments somehow. Will post a followup patch.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Text should explain relationship with RichText
2 participants