Updated paginate

This commit is contained in:
thomashii 2021-07-19 13:02:17 +08:00
parent 468513304c
commit 68d2541f03
3 changed files with 12 additions and 12 deletions

View file

@ -1,5 +1,9 @@
# Change Log # Change Log
## 3.0.1
* Updated README
## 3.0.0 ## 3.0.0
* Migrated to support Dart SDK 2.12.x NNBD * Migrated to support Dart SDK 2.12.x NNBD

View file

@ -1,6 +1,6 @@
# Paginate # Angel3 Paginate
[![version](https://img.shields.io/badge/pub-v3.0.0-brightgreen)](https://pub.dartlang.org/packages/angel3_paginate) [![version](https://img.shields.io/badge/pub-v3.0.1-brightgreen)](https://pub.dartlang.org/packages/angel3_paginate)
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
@ -19,9 +19,7 @@ dependencies:
## Usage ## Usage
This library exports a `Paginator<T>`, which can be used to efficiently produce This library exports a `Paginator<T>`, which can be used to efficiently produce instances of `PaginationResult<T>`. Pagination results, when serialized to JSON, look like this:
instances of `PaginationResult<T>`. Pagination results, when serialized to JSON, look like
this:
```json ```json
{ {
@ -36,8 +34,7 @@ this:
} }
``` ```
Results can be parsed from Maps using the `PaginationResult<T>.fromMap` constructor, and Results can be parsed from Maps using the `PaginationResult<T>.fromMap` constructor, and serialized via their `toJson()` method.
serialized via their `toJson()` method.
To create a paginator: To create a paginator:
@ -60,6 +57,4 @@ void main() {
The entire Paginator API is documented, so check out the DartDocs. The entire Paginator API is documented, so check out the DartDocs.
Paginators by default cache paginations, to improve performance as you shift through pages. Paginators by default cache paginations, to improve performance as you shift through pages. This can be especially helpful in a client-side application where your UX involves a fast response time, i.e. a search page.
This can be especially helpful in a client-side application where your UX involves a fast
response time, i.e. a search page.

View file

@ -1,7 +1,8 @@
name: angel3_paginate name: angel3_paginate
version: 3.0.0 version: 3.0.1
description: Platform-agnostic pagination library, with custom support for the Angel3 framework. description: Platform-agnostic pagination library, with custom support for the Angel3 framework.
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/paginate homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/paginate
environment: environment:
sdk: '>=2.12.0 <3.0.0' sdk: '>=2.12.0 <3.0.0'
dependencies: dependencies: