added PageStorageKey to categories list to maintain its scroll position (#1088)
This commit is contained in:
parent
1c65aa393e
commit
563744288f
1 changed files with 2 additions and 0 deletions
|
|
@ -97,6 +97,8 @@ class AnalyticsPopupState extends State<AnalyticsPopup> {
|
|||
);
|
||||
} else {
|
||||
dialogContent = ListView.builder(
|
||||
// Add a key to the ListView to persist the scroll position
|
||||
key: const PageStorageKey<String>('categoryList'),
|
||||
itemCount: _sortedEntries.length,
|
||||
itemBuilder: (context, index) {
|
||||
final category = _sortedEntries[index];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue