efficient_indexed_stack 1.0.2 efficient_indexed_stack: ^1.0.2 copied to clipboard
It's an IndexedStack that only builds the widgets that are in the range of the current index and the keepAliveDistance
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add efficient_indexed_stack
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
efficient_indexed_stack: ^1.0.2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:efficient_indexed_stack/efficient_indexed_stack.dart';