datalist 1.0.0
datalist: ^1.0.0 copied to clipboard

Implementation DataList in Flutter

Data list #

Build Status Coverage Status Pub Version Pub Likes Flutter Platform

This package is part of the SurfGear toolkit made by Surf.

Usage #

Data list limit-offset #

The main entity - OffsetDataList - a list for paginated data through the limit / offset mechanism Has methods:   1. merge (DataList data), which allows you to combine 2 data blocks. The input should be only OffsetDataList   2. int nextOffset - returns the offset for the trace of the data block   3. bool canGetMore - indicates whether more data can be loaded   1. #transform () - to convert data in a list

It can combine two subsequent blocks, and in reverse order.

Data list page-count #

The main entity - PageCountDataList - a list of paginated data through the page / count mechanism Has methods:   1. merge (DataList data), which allows you to combine 2 data blocks. Input should be only PageCount DataList   2. int getNextPage () - returns the number of the trace of the data block   3. bool canGetMore - indicates whether more data can be loaded   1. #transform () - to convert data in a list

It can combine two subsequent blocks, and in reverse order.

Installation #

Add datalist to your pubspec.yaml file:

dependencies:
  datalist: ^1.0.0

You can use both stable and dev versions of the package listed above in the badges bar.

Changelog #

All notable changes to this project will be documented in this file.

Issues #

For issues, file directly in the main SurfGear repo.

Contribute #

If you would like to contribute to the package (e.g. by improving the documentation, solving a bug or adding a cool new feature), please review our contribution guide first and send us your pull request.

Your PRs are always welcome.

How to reach us #

Please feel free to ask any questions about this package. Join our community chat on Telegram. We speak English and Russian.

Telegram

License #

Apache License, Version 2.0

3
likes
110
pub points
37%
popularity

Publisher

surf.ru

Implementation DataList in Flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache 2.0 (LICENSE)

Dependencies

collection

More

Packages that depend on datalist