We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07f57cf commit 9dbe155Copy full SHA for 9dbe155
lib/redux/selectors/selectors.dart
@@ -37,6 +37,11 @@ bool saveScrollPositionSelector(AppState state) =>
37
(state != null) ? state.options.saveScrollPosition : false;
38
39
double getScrollOffsetForThisPath(Map<String, ScrollInfo> scrollPos, int id) {
40
+ //set scroll position for path with does not exist previously in saved options.
41
+ if (id > scrollPos.length) {
42
+ scrollPos[id.toString()] = ScrollInfo(id, 0.0, 0.0);
43
+ }
44
+
45
return scrollPos[id.toString()].scrollOffset;
46
}
47
0 commit comments