feat: maintain scroll position in vocab/morph analytics view (#1791)
This commit is contained in:
parent
1a0b9d2809
commit
a0ef9c4424
2 changed files with 2 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ class MorphAnalyticsView extends StatelessWidget {
|
|||
|
||||
return snapshot.connectionState == ConnectionState.done
|
||||
? ListView.builder(
|
||||
key: const PageStorageKey<String>('morph-analytics'),
|
||||
itemCount: morphs.displayFeatures.length,
|
||||
itemBuilder: (context, index) => morphs
|
||||
.displayFeatures[index].displayTags.isNotEmpty
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ class VocabAnalyticsView extends StatelessWidget {
|
|||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 20),
|
||||
child: ListView(
|
||||
key: const PageStorageKey<String>('vocab-analytics'),
|
||||
children: [flowers, greens, seeds],
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue