Overview
A Flutter package that extends the built-in IndexedStack to support lazy loading of its children. It ensures that only the currently visible widget is built and rendered, improving performance for large stacks with expensive widgets. Ideal for scenarios where memory efficiency and on-demand rendering are crucial. The package maintains the same API as IndexedStack but adds lazy initialization, making it seamless to integrate into existing projects.
Use cases
- Large tabbed interfaces
- Memory-efficient navigation
- Dynamic content switching
- On-demand widget rendering
- Complex UIs with heavy components
Key features
- Lazy loading of stack children
- Same API as IndexedStack
- Improved performance
- Reduced memory usage
- Seamless integration
Suitable for
- Developers optimizing UI performance
- Apps with many tabs or screens
- Projects using IndexedStack with heavy widgets
- Pagination-heavy applications
- Highly interactive dashboards
Considerations
- Not suitable for immediate child rendering needs
- Limited to stack-based layouts
- May require careful state management
- Best used with stable index values
- Does not support animated transitions by default