Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
6d8930e4
Commit
6d8930e4
authored
May 04, 2017
by
Hans Muller
Committed by
GitHub
May 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Animation demo scrolling (#9804)
parent
e504dabd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
home.dart
examples/flutter_gallery/lib/demo/animation/home.dart
+4
-5
No files found.
examples/flutter_gallery/lib/demo/animation/home.dart
View file @
6d8930e4
...
...
@@ -478,9 +478,7 @@ class _AnimationDemoHomeState extends State<AnimationDemoHome> {
final
Iterable
<
Widget
>
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
<
Widget
>
_allHeadingItems
(
double
maxHeight
,
double
midScrollOffset
)
{
...
...
@@ -571,8 +569,9 @@ class _AnimationDemoHomeState extends State<AnimationDemoHome> {
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
(),
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment