proste_indexed_stack 0.1.0 proste_indexed_stack: ^0.1.0 copied to clipboard
Lazy load function of indexed stack, when the page is displayed for the first time, add to stack.
Englist | 中文
Introduce #
The indexedstack component provides lazy loading function. When the page is pushed into the stack before the first presentation, all the parameters are consistent with IndexedStack. You can use ProsteIndexedStack like IndexedStack.
Usage #
int _current = 0;
ProsteIndexedStack(
index: _current,
children: [
Page1(),
Page2(),
Page3(),
Page4(),
...
],
);