preload_page_view 0.1.0 copy "preload_page_view: ^0.1.0" to clipboard
preload_page_view: ^0.1.0 copied to clipboard

outdated

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 [...]

PreloadPageView #

Like the name, this is the widget to support Pre-load function for PageView widget.

Currently it's only support preload one page, will enhance it latter if people need preload multiple pages.

Usage #

Everything is similar like PageView, you need PreloadPageView.builder and PreloadPageController to create the PreloadPageView

Example #

  @override
  Widget build(BuildContext context) {
    return new PreloadPageView.builder(
      itemCount: ...,
      itemBuilder: ...,
      onPageChanged: (int position) {...},
      .....
      controller: PreloadPageController(),
    );
  }
270
likes
0
pub points
97%
popularity

Publisher

unverified uploader

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 the preload functon will work.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on preload_page_view