lazy_load_indexed_stack 0.0.2 icon indicating copy to clipboard operation
lazy_load_indexed_stack: ^0.0.2 copied to clipboard

A package that extends IndexedStack to allow for lazy loading.

lazy_load_indexed_stack #

A package that extends IndexedStack to allow for lazy loading.

Motivation #

If you use the IndexedStack with bottom navigation, all the widgets specified in the children of the IndexedStack will be built.

If the widget requires API requests or database access, or has a complex UI, the IndexedStack build time will be significant.

Therefore, I created an extended IndexedStack that builds the required widget only when it is needed, and returns the pre-built widget when it is needed again.

56
likes
120
pub points
93%
popularity

Publisher

verified publisher iconokaryo.io

A package that extends IndexedStack to allow for lazy loading.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on lazy_load_indexed_stack