auto_pagination

Creator: coderz1093

Last updated:

0 purchases

auto_pagination Image
auto_pagination Images

Languages

Categories

Add to Cart

Description:

auto pagination

auto_pagination #
A Flutter package that provides an auto pagination widget to help users create a view that creates pagination view automatically when there is no room left for widget.
Installation #
Add auto_pagination as a dependency in your pubspec.yaml file:
dependencies:
auto_pagination: ^1.0.0
copied to clipboard
Usage #

Import the package:

import 'package:auto_pagination/auto_pagination.dart';
copied to clipboard

Wrap your list of items with the AutoPagination widget:

AutoPagination(
items: [
"random1",
"random2",
"random3",
"random4",
"random5",
"random6",
"random7",
"random8",
"random9",
"random10",
"random11",
"random12",
"random13",
"random14",
].map((e) => SizedBox(height: 20, child: Text(e))).toList(),
),
copied to clipboard

Customize the AutoPagination widget as needed using optional parameters:

AutoPagination(
items: _items,
itemGap:10,
),
copied to clipboard
Parameters #

items: required list of [Widgets] to be displayed
itemGap: optional gap between items if not provided default to 10 px

Example #
For a complete example, see the example app.
License #
This package is licensed under the MIT License. See the LICENSE file for details.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.