lazy_load_indexed_stack 0.0.2 copy "lazy_load_indexed_stack: ^0.0.2" to clipboard
lazy_load_indexed_stack: ^0.0.2 copied to clipboard

outdated

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.

88
likes
0
pub points
95%
popularity

Publisher

verified publisherokaryo.io

A package that extends IndexedStack to allow for lazy loading.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on lazy_load_indexed_stack