preload_page_view
Flutter PageView-Widget vorladen
- Sterne
- 182
- Forks
- 55
- Letzter Push (UTC)
- 27.09.2023
- Projektstatus
- Aktiv
Original-README
Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
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.
Verwendete Abhängigkeiten
Abhängigkeiten 2 Einträge
- flutter
{"sdk":"flutter"} - flutter_testEntwicklung
{"sdk":"flutter"}
Wie wähle ich ein passendes Repository?
Nach Anwendungsfall filtern, Aktivität vergleichen und vor der Nutzung das Originalprojekt prüfen.
- Nach Name, Autor oder Beschreibung suchen und nach Thema eingrenzen.
- Sterne, Forks und letzte Pushes vergleichen. Sterne zeigen Interesse, garantieren aber keine Qualität.
- Vor der Nutzung README, Lizenz und Issues auf GitHub prüfen.
Quellen und Pflege
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
- octomato/preload_page_view · GitHub ↗
- GitHub Docs — Saving repositories with stars ↗
- Verzeichnis gepflegt von Ducafecat ↗