clean_network 1.0.5 copy "clean_network: ^1.0.5" to clipboard
clean_network: ^1.0.5 copied to clipboard

A Wrapper for Dio to make network calls in a clean way. It supports REST and GraphQL with clean architecture and cache support.

1.0.5 #

  • added PageParams class
  • added fromJson methods on PaginatedResponse classes Note: to use fromJson methods your API response must have the following structure:
  {
    "data": [
      {
        "id": 1,
        "name": "John",
        "email": "john@doe.com"
      }
    ],
    "pagination": {
      "current_page": 1,
      "last_page": 1,
      "per_page": 15,
      "total": 1
    }
  }

or

  {
    "data": [
      {
        "id": 1,
        "name": "John",
        "email": "john@doe.com"
      }
    ],
    "pagination": {
      "currentPage": 1,
      "lastPage": 1,
      "perPage": 15,
      "total": 1
    }
  }

1.0.4 #

  • added PaginatedResponse class
  • added PaginatedCleanResponse,'PaginatedEitherResponse' and 'EitherResponse' typedefs
  • export fpdart package

1.0.3 #

  • added examples

1.0.2 #

  • export dio package

1.0.1 #

  • update docs

1.0.0 #

  • update docs

1.0.0+1 #

  • initial release
2
likes
0
points
159
downloads

Publisher

verified publisherkishormainali.com

Weekly Downloads

A Wrapper for Dio to make network calls in a clean way. It supports REST and GraphQL with clean architecture and cache support.

Repository (GitHub)
View/report issues

Topics

#graphql #dio #network #clean #rest

License

unknown (license)

Dependencies

dio, dio_cache_interceptor, dio_http2_adapter, flutter, fpdart, freezed_annotation, gql, gql_exec, internet_connection_checker_plus, json_annotation, pretty_dio_logger

More

Packages that depend on clean_network