angel_paginate 2.0.0
angel_paginate: ^2.0.0 copied to clipboard

Dart native js
Flutter Android iOS web

Platform-agnostic pagination library, with custom support for the Angel framework.

example/main.dart

import 'package:angel_paginate/angel_paginate.dart';

main() {
  var iterable = [1, 2, 3, 4];
  var p = new Paginator(iterable);

  // Get the current page (default: page 1)
  var page = p.current;
  print(page.total);
  print(page.startIndex);
  print(page.data); // The actual items on this page.
  p.next(); // Advance a page
  p.back(); // Back one page
  p.goToPage(10); // Go to page number (1-based, not a 0-based index)
}
0
likes
100
pub points
55%
popularity

Publisher

angel-dart.dev

Platform-agnostic pagination library, with custom support for the Angel framework.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

angel_framework

More

Packages that depend on angel_paginate