andomie_pagination 1.1.1 copy "andomie_pagination: ^1.1.1" to clipboard
andomie_pagination: ^1.1.1 copied to clipboard

The Pagination class provides functionality for managing pagination state and data retrieval in Flutter apps. It allows for easy loading of data in chunks, handling of scroll events, and notifying whe [...]

example/lib/main.dart

import 'package:andomie_pagination/pagination.dart';
import 'package:example/example.dart';
import 'package:flutter/material.dart';

import 'samples/custom.dart';

void main() {
  // Initialize a Pagination instance
  Pagination.init<String>(
    kCustomKey,
    initialSize: 5,
    fetchingSize: 5,
    limit: 1000,
    preload: 1000,
  );
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'ANDOMIE Pagination',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const Examples(),
    );
  }
}
2
likes
100
points
45
downloads

Publisher

unverified uploader

Weekly Downloads

The Pagination class provides functionality for managing pagination state and data retrieval in Flutter apps. It allows for easy loading of data in chunks, handling of scroll events, and notifying when new data is available. With features like preloading and error handling, it simplifies the implementation of paginated lists or grids.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, flutter_entity, flutter_staggered_grid_view, sliver_tools

More

Packages that depend on andomie_pagination