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

This commit is contained in:
Hans Muller
2017-06-06 12:11:21 -07:00
committed by GitHub
parent 0f277fcc8a
commit c8e4cbf27d
9 changed files with 196 additions and 54 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(),
);