From 6d8930e4d6baeb002161f2d3da480744c3d05aa5 Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Thu, 4 May 2017 11:13:36 -0700 Subject: [PATCH] Animation demo scrolling (#9804) --- examples/flutter_gallery/lib/demo/animation/home.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/flutter_gallery/lib/demo/animation/home.dart b/examples/flutter_gallery/lib/demo/animation/home.dart index 11bde3419e..42f9d65a5d 100644 --- a/examples/flutter_gallery/lib/demo/animation/home.dart +++ b/examples/flutter_gallery/lib/demo/animation/home.dart @@ -478,9 +478,7 @@ class _AnimationDemoHomeState extends State { final Iterable detailItems = section.details.map((SectionDetail detail) { return new SectionDetailView(detail: detail); }); - return ListTile.divideTiles(context: context, tiles: detailItems).map((Widget item) { - return new SliverToBoxAdapter(child: item); - }); + return ListTile.divideTiles(context: context, tiles: detailItems); } Iterable _allHeadingItems(double maxHeight, double midScrollOffset) { @@ -571,8 +569,9 @@ class _AnimationDemoHomeState extends State { child: new PageView( controller: _detailsPageController, children: allSections.map((Section section) { - return new CustomScrollView( - slivers: _detailItemsFor(section).toList(), + return new Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: _detailItemsFor(section).toList(), ); }).toList(), ),