Commit 7de7105f authored by Hans Muller's avatar Hans Muller

Correct TabNavigatorWidth, tabs.dart example

parent 4c9f15cc
...@@ -136,5 +136,10 @@ class TabbedNavigatorAppState extends State<TabbedNavigatorApp> { ...@@ -136,5 +136,10 @@ class TabbedNavigatorAppState extends State<TabbedNavigatorApp> {
} }
void main() { void main() {
runApp(new TabbedNavigatorApp()); runApp(new MaterialApp(
title: 'Tabs',
routes: <String, RouteBuilder>{
'/': (RouteArguments args) => new TabbedNavigatorApp(),
}
));
} }
...@@ -601,6 +601,8 @@ class TabNavigator extends StatelessComponent { ...@@ -601,6 +601,8 @@ class TabNavigator extends StatelessComponent {
isScrollable: isScrollable isScrollable: isScrollable
), ),
new Flexible(child: views[selectedIndex].builder(context)) new Flexible(child: views[selectedIndex].builder(context))
]); ],
alignItems: FlexAlignItems.stretch
);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment