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

More useful error messages when you use Stack without a textDirection. #59360

Merged
merged 2 commits into from Jun 15, 2020

Conversation

Hixie
Copy link
Contributor

@Hixie Hixie commented Jun 12, 2020

No description provided.

@fluttergithubbot fluttergithubbot added the framework flutter/packages/flutter repository. See also f: labels. label Jun 12, 2020
@Hixie
Copy link
Contributor Author

Hixie commented Jun 12, 2020

cc @gspencergoog

Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

packages/flutter/lib/src/widgets/debug.dart Outdated Show resolved Hide resolved
/// the 'alignment' argument". Should be an adverb phrase describing why.
/// * hint: explain why this might be happening, for example "The default
/// value of the 'aligment' argument of the $runtimeType widget is an
/// AlignmentDirectional value.". Should be a fully punctuated sentence.
Copy link
Contributor

Choose a reason for hiding this comment

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

ultra nit, and only if we're using American punctuation rules (personally, I think it's a dumb rule, but it is what it is):

Suggested change
/// AlignmentDirectional value.". Should be a fully punctuated sentence.
/// AlignmentDirectional value." Should be a fully punctuated sentence.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The string here is a literal, not a quote, so I'm inclined to go with programming punctuation rather than usual prose punctuation.

Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>
@Hixie
Copy link
Contributor Author

Hixie commented Jun 13, 2020

Updated as per first suggestion, will land on green. Thanks!

@fluttergithubbot fluttergithubbot merged commit f7f019a into flutter:master Jun 15, 2020
mingwandroid pushed a commit to mingwandroid/flutter that referenced this pull request Sep 6, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants