Skip to content

懒加载IndexedStack,IndexedStack默认全部加载children,在某些情况下我们不希望这样,lazy_indexed_stack在index被访问之后才加载对应的视图

License

best-flutter/lazy_indexed_stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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,

      )

About

懒加载IndexedStack,IndexedStack默认全部加载children,在某些情况下我们不希望这样,lazy_indexed_stack在index被访问之后才加载对应的视图

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published