GithubHelp home page GithubHelp logo

ngoan98tv / remote_data_provider Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 125 KB

A Flutter package to work with remote data and provider

Home Page: https://pub.dev/packages/remote_data_provider

License: MIT License

Dart 100.00%
flutter provider http cached

remote_data_provider's Introduction

Easy API Integration with Providers

Test DryRun Publish PubVersion Issues

Help implementing providers easier with predefined abstract classes, special is for working with remote data like REST API.

Usages

DataListProvider

Good for handling a list of data items, such as list of posts, list of users,...

All you need to do is just extends DataListProvider and define onFetch method (to call your API or whatever to fetch your data)

Features:

  • Supported infinity list with predefined loadMore and combine fetched data automatically
  • Fetch/refresh data with predefined isLoading state
  • Add data with predefined isAdding state
  • Update data with predefined isUpdating state
  • Delete data with predefined isDeleting state
  • Pagination with predefined page, pageSize, lastPage states
  • Sorting with predefined sortOptions state
  • Searching with predefined search state and integrated debounce

BasicDataProvider

Good for any kind of data that is not a list, such as user detail, post detail, login, register,...

Features:

  • Fetch/refresh data with predefined isLoading state
  • Update data with predefined isUpdating state
  • Delete data with predefined isDeleting state
  • Support infinity list

See more in the example

References

provider

Feel free to leave an issue if you need help or see something wrong in this package.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.