Skip to content

copy and presentaion#2094

Closed
pedromorgan wants to merge 2 commits into
flutter:masterfrom
pedromorgan:patch-8
Closed

copy and presentaion#2094
pedromorgan wants to merge 2 commits into
flutter:masterfrom
pedromorgan:patch-8

Conversation

@pedromorgan

Copy link
Copy Markdown

make it more understandable with links etc..

make it more understandable with links etc..
@googlebot googlebot added the cla: yes Contributor has signed the Contributor License Agreement label Dec 18, 2018
small tweaks to tab controller

@brianegan brianegan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overall, I like the changes! One note: Please ensure the lines do not go past an 80 character limit (unless they have to, such as with links).

the [material library](https://docs.flutter.io/flutter/material/material-library.html).

## Directions
## Steps

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's keep directions, please! Used everywhere else in the cookbook.

In order for tabs to work, we'll need to keep the selected tab and content
sections in sync. This is the job of the [`TabController`](https://docs.flutter.io/flutter/material/TabController-class.html).
The purpose of the [`TabController`](https://docs.flutter.io/flutter/material/TabController-class.html),
is to coordinate the selected `Tab` in the `TabBar` and content in `TabBarView`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"content in the TabBarView. "?

[`DefaultTabController`](https://docs.flutter.io/flutter/material/DefaultTabController-class.html)
Widget. Using the `DefaultTabController` is the simplest option, since it will
create a `TabController` for us and make it available to all descendant Widgets.
A `TabController` can be either:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like the idea of this section, but the language is a bit awkward. Maybe:

A TabController can be:

  • Created manually
  • Created automatically by using a DefaultTabController Widget

Using the DefaultTabController is the simplest...

@sfshaza2

Copy link
Copy Markdown
Contributor

I'm incorporating some of this in another PR: #2711

Closing.

@sfshaza2 sfshaza2 closed this May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Contributor has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants