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

Added sample code for scaffold widget [#21136] #21613

Merged
merged 3 commits into from Oct 4, 2018

Conversation

NPKompleet
Copy link
Contributor

@NPKompleet NPKompleet commented Sep 9, 2018

Added sample code for Scaffold widget to the repo.

///
/// ```dart
/// Scaffold(
/// appBar: AppBar(
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: please indent by 2 rather than 4

/// ),
/// ),
///
/// bottomNavigationBar: BottomAppBar(
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: we should be consistent about whether we want blank lines between each entry in this list or not. I'd probably go with no blank lines to be consistent with other sample code, but I can go either way if you think it's important for this example.

@Hixie
Copy link
Contributor

Hixie commented Sep 25, 2018

This looks fantastic, thanks! Just a few nits if you wouldn't mind updating the code a little for consistency. Let me know if you've had the opportunity to update the PR and then I can land it!

@NPKompleet
Copy link
Contributor Author

@Hixie I just added the fixes you recommended to the Scaffold widget sample code.

Fix one more formatting issue
@dnfield
Copy link
Contributor

dnfield commented Oct 4, 2018

LGTM! I fixed one more minor nit there on the spacing at the end.

Thanks for your contribution!

@dnfield dnfield merged commit 4a13be4 into flutter:master Oct 4, 2018
@NPKompleet NPKompleet deleted the docs-sample-code-scaffold branch October 4, 2018 17:40
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 9, 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.

None yet

4 participants