Corrected the scrollable tab view key in the tabs demo (#5458)

This commit is contained in:
Hans Muller
2016-08-17 11:20:28 -07:00
committed by GitHub
parent 80fe689a56
commit 0892f6a503

View File

@@ -152,7 +152,7 @@ class _TabsDemoState extends State<TabsDemo> {
body: new TabBarView<_Page>(
children: _allPages.keys.map((_Page page) {
return new ScrollableList(
scrollableKey: _selectedPage.scrollableKey,
scrollableKey: page.scrollableKey,
padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 16.0),
itemExtent: _CardDataItem.height,
children: _allPages[page].map((_CardData data) {