preload_page_view 0.1.4

Flutter Android iOS web

A pre-load PageView widget which you can use it to preload one page before and after current page.

PreloadPageView #

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

For better user experience sometimes we need pre-load the images/web requests before user really scrolled to next PageView but the official PageView don't support that.So this is the time to use PreloadPageView.

Usage #

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

Also you can use preloadPagesCount to set preload pages count when you need.

Example #

  @override
  Widget build(BuildContext context) {
    return new PreloadPageView.builder(
      itemCount: ...,
      itemBuilder: ...,
      onPageChanged: (int position) {...},
      .....
      preloadPagesCount: 3,
      controller: PreloadPageController(),
    );
  }
28
likes
100
pub points
91%
popularity

A pre-load PageView widget which you can use it to preload one page before and after current page.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

neil86000@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on preload_page_view