Skip to content
pubscout

sturdy_http

0.7.0, released 10 months ago by betterment.dev

Strongly typed, event-based HTTP client wrapping Dio.

$ flutter pub add sturdy_http
Source repository

What it does

SturdyHttp is an opinionated HTTP client wrapping Dio that provides object-based network requests, event-based request notifications, and worker isolate deserialization.

AI-written summary of version 0.7.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want an opinionated, structured wrapper around Dio for network calls.
  • You need worker isolate deserialization to avoid blocking the main thread.
  • You want event-based notifications during request execution.

Skip it when

  • you prefer raw Dio or standard HTTP clients without opinions.
  • You do not want to manage request objects and response wrappers.

Strengths

  • Object-based network requests
  • Worker isolate deserialization support
  • Event-based request monitoring via listeners

Weaknesses

  • Opinionated structure may not fit all application architectures
  • Requires learning custom request and response types

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
3

Not documented

return SturdyHttp(
  baseUrl: '$baseUrl/api/',
  eventListener: eventListener,
  interceptors: interceptors,
);

Alternatives

Packages that do the same job and could replace sturdy_http.

  • http

    If you need a simpler, lightweight HTTP client built into the standard Dart libraries.

Works with

Packages commonly used together with sturdy_http: ones it builds on, ones built on it, and its own family.