Commit 90a3a20d authored by Hans Muller's avatar Hans Muller

Merge pull request #1860 from HansMuller/tabs

Correct TabNavigatorWidth, tabs.dart example
parents cbf9eab8 7de7105f
......@@ -136,5 +136,10 @@ class TabbedNavigatorAppState extends State<TabbedNavigatorApp> {
}
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 {
isScrollable: isScrollable
),
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