Nice Navigation Example + Widget Tree Visuals

Working with the navigation example at I felt there must be a better way to work this issue … and a little searching found this article:

My biggest surprise is that you need to set the number of tabs for the DefaultTabController, vs it looking at what you declare in the widgets below:

home: new DefaultTabController(
  length: 4,