https://github.com/best-flutter/lazy_indexed_stack
懒加载IndexedStack,IndexedStack默认全部加载children,在某些情况下我们不希望这样,lazy_indexed_stack在index被访问之后才加载对应的视图
https://github.com/best-flutter/lazy_indexed_stack
Last synced: about 1 year ago
JSON representation
懒加载IndexedStack,IndexedStack默认全部加载children,在某些情况下我们不希望这样,lazy_indexed_stack在index被访问之后才加载对应的视图
- Host: GitHub
- URL: https://github.com/best-flutter/lazy_indexed_stack
- Owner: best-flutter
- License: other
- Created: 2018-08-30T08:31:42.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-17T20:57:07.000Z (about 6 years ago)
- Last Synced: 2025-03-28T03:51:13.115Z (about 1 year ago)
- Language: Dart
- Size: 53.7 KB
- Stars: 20
- Watchers: 1
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# lazy_indexed_stack
懒加载IndexedStack
## Getting Started
依赖
```
azy_indexed_stack: any
```
导入:
import 'package:lazy_indexed_stack/lazy_indexed_stack.dart';
使用方法:
```
new LazyIndexedStack(
reuse: false,
index: index,
itemBuilder: (c,i){
return LoadingPage();
},
itemCount: 4,
)
```