auto_pagination 1.0.0 copy "auto_pagination: ^1.0.0" to clipboard
auto_pagination: ^1.0.0 copied to clipboard

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.

example/lib/main.dart

import 'package:auto_pagination/auto_pagination.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Auto Pagination Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({
    super.key,
  });

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Example all for auto pagination"),
      ),
      body: 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(),
      ),
    );
  }
}
1
likes
160
pub points
0%
popularity

Publisher

unverified uploader

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.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on auto_pagination