preload_page_view 0.1.0
preload_page_view: ^0.1.0 copied to clipboard
A pre-load PageView widget which you can use it to preload one page before and after current page. Everything is similar like PageView, you just need to change your PageView to PreloadPageView then th [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add preload_page_view
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
preload_page_view: ^0.1.0
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:preload_page_view/preload_page_view.dart';