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.
2 parents d8cd4c3 + 829491b commit b708ee2Copy full SHA for b708ee2
lib/lazy_load_indexed_stack.dart
@@ -57,6 +57,10 @@ class LazyLoadIndexedStackState extends State<LazyLoadIndexedStack> {
57
void didUpdateWidget(final LazyLoadIndexedStack oldWidget) {
58
super.didUpdateWidget(oldWidget);
59
60
+ if (widget.children.length != oldWidget.children.length) {
61
+ _children = _initialChildren();
62
+ }
63
+
64
_children[widget.index] = widget.children[widget.index];
65
}
66
0 commit comments