Improved support for saving and restoring the scroll offset, etc V2 (#10590)

This commit is contained in:
Hans Muller
2017-06-08 17:20:36 -07:00
committed by GitHub
parent 435c25bfc4
commit 0e4dda7736
10 changed files with 200 additions and 57 deletions

View File

@@ -76,7 +76,7 @@ class EntryItem extends StatelessWidget {
if (root.children.isEmpty)
return new ListTile(title: new Text(root.title));
return new ExpansionTile(
key: new ValueKey<Entry>(root),
key: new PageStorageKey<Entry>(root),
title: new Text(root.title),
children: root.children.map(_buildTiles).toList(),
);