Tabs and scrolling has odd card text (#4019)

Looks like our intent here was to show the tab label rather than
"Instance of '_Page'".

Also, fix an issue where the scrollableKey wasn't being forwarded to the
actual scrollable.

Fixes #3090
This commit is contained in:
Adam Barth
2016-05-19 14:13:43 -07:00
committed by Hans Muller
parent 3b3b0ff1bb
commit 8283d05eb5

View File

@@ -68,7 +68,7 @@ class TabsDemoState extends State<TabsDemo> {
height: 192.0,
child: new Card(
child: new Center(
child: new Text('Tab $page.label, item $i')
child: new Text('Tab ${page.label}, item $i')
)
)
);