dio VS bloc

Compare dio vs bloc and see what are their differences.


A powerful HTTP package for Dart/Flutter, which supports Global settings, Interceptors, FormData, Aborting and canceling a request, Files uploading and downloading, Requests timeout, Custom adapters, etc. [Moved to: https://github.com/cfug/dio] (by flutterchina)


A predictable state management library that helps implement the BLoC design pattern (by felangel)
Our great sponsors
  • Appwrite - The open-source backend cloud platform
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Onboard AI - Learn any GitHub repo in 59 seconds
dio bloc
8 55
11,371 11,019
- -
4.0 8.6
10 months ago 8 days ago
Dart Dart
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of dio. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-12.
  • [Official] Dio is no longer being maintained.
    5 projects | /r/FlutterDev | 12 Feb 2023
    With no release in the last 6 months, piling up of issues and launch of a new fork (diox), I felt something was going on with dio. Sadly, today I came across an official announcement (updated on the project repo 2 days back):
  • Dio caching experience
    2 projects | /r/FlutterDev | 7 Jan 2023
    You might want to think twice about dio....we evaluated dio on a recent project and decided to avoid it after running into a blocker when setting a custom timeout (this bug: https://github.com/flutterchina/dio/issues/1454)
  • GetX is dead, what to use next?
    4 projects | /r/FlutterDev | 25 Nov 2021
    - and Dio for http requests
  • Thoughts on creating a library with Dart for browser and node
    2 projects | /r/dartlang | 26 Jun 2021
    I also had some troubles choosing which Dart HTTP client to use. I've started with dio, but when I tried to read one of our bigger JSON responses (~1.5mb) my browser tab froze (there seems to be an old issue describing the same behavior). After that I've switched to the default dart's http package and it is working fine but it doesn't have builtin requests abort/cancellation.


Posts with mentions or reviews of bloc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-23.

What are some alternatives?

When comparing dio and bloc you can also consider the following projects:

riverpod - A simple way to access state while robust and testable.

getx - Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.

mobx.dart - MobX for the Dart language. Hassle-free, reactive state-management for your Dart and Flutter apps.

get_it - Get It - Simple direct Service Locator that allows to decouple the interface from a concrete implementation and to access the concrete implementation from everywhere in your App. Maintainer: @escamoteur

graphql-flutter - A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.

cubit - Cubit is a lightweight state management solution. It is a subset of the bloc package that does not rely on events and instead uses methods to emit new states.

zustand - šŸ» Bear necessities for state management in React

rxdart - The Reactive Extensions for Dart

MobX - Simple, scalable state management.

flutter-design-patterns - Flutter Design Patterns application

routemaster - Easy-to-use Navigator 2.0 router for web, mobile and desktop. URL-based routing, simple navigation of tabs and nested routes.

flutter-quill - Rich text editor for Flutter