flutter_pagination_plus 0.0.3
flutter_pagination_plus: ^0.0.3 copied to clipboard
A lightweight Flutter library for **Infinite Scroll** and **Load More** implementations. Perfect for lists, grids, or any scrollable content.
Flutter Pagination Plus #
The flutter_pagination_plus package is a lightweight yet powerful Flutter library that simplifies professional-grade pagination for any scrollable content. Effortlessly implement Infinite Scrolling or Load More functionality in dynamic lists with just a few lines of code.
Features #
- Infinite Scroll- Automatic loading as user scrolls
- Load More- Manual trigger with customizable button
- Customizable- Match your exact design requirements
Getting started #
Add the package to your
pubspec.yamlfile:
dependencies:
flutter_pagination_plus: <latest version>
Import the Package:
import 'package:flutter_pagination_plus/flutter_pagination_plus.dart';
Implement Widget:
FlutterPaginationPlus<User>(
list: _userList,
onChangeNextPage: () async {
_userList.addAll(await _generateList());
},
padding: EdgeInsets.symmetric(horizontal: 12),
paginationType: PaginationType.infiniteScroll,
itemBuilder: (ctx, index) {
return Container(
margin: EdgeInsets.symmetric(vertical: 8),
child: ListTile(
tileColor: Colors.teal,
title: Text("${_userList[index]} $index/${_userList.length}"),
trailing: CloseButton(
onPressed: () {
setState(() => _userList.removeAt(index));
},
),
),
);
},
),
Limitation #
| Android | iOS | MacOS | Web | Linux | Windows |
|---|---|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Additional information #
flutter_pagination_plus plugin is developed by Mahadi Hassan