octomato/preload_page_view
Flutter 전로드 PageView 위젯
- Stars
- 182
- Forks
- 55
- 최근 푸시(UTC)
- 2023. 9. 27.
- 프로젝트 상태
- 활성
언어DartObjective-C
사용 중인 의존성
의존성 목록 2 개
- flutter
{"sdk":"flutter"} - flutter_test개발 의존성
{"sdk":"flutter"}
원본 README
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
README 펼치기 / 접기
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(),
);
}
If you found any issue in the newest beta version, please try stable version [0.1.4]. Please give us a star if you like this widget. Your star could help us update or fix bugs quickly.