Search packages, repositories and app categories

Package detailsv3.0.0

riverbloc

BlocProvider implementation with riverpod as alternative to provider, similar to StateNotifierProvider

AndroidiOSWebmacOSWindowsLinux
30-day downloads
7.6K
Likes
114
Pub points
160

Install package

flutter pub add riverbloc

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Riverbloc is a state management package for Flutter that provides a BlocProvider-like implementation using Riverpod as its foundation. It serves as an alternative to the provider package, offering a more flexible and scalable approach to dependency injection and state management. Inspired by StateNotifierProvider, Riverbloc enables efficient, testable, and reactive state handling across Flutter applications. It supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux, making it ideal for cross-platform development.

Use cases

  • Cross-platform Flutter apps
  • State management with Riverpod
  • Dependency injection in large-scale apps
  • Reactive UI updates
  • Testing state logic
  • Replacing Provider with Riverpod

Key features

  • Riverpod-based state management
  • BlocProvider-like API
  • Supports all Flutter platforms
  • Easy integration with existing code
  • Testable state logic
  • Type-safe dependency resolution

Suitable for

  • Developers familiar with Riverpod
  • Large-scale Flutter applications
  • Teams needing robust state management
  • Apps requiring platform-wide consistency
  • Projects aiming for clean architecture

Considerations

  • Requires understanding of Riverpod concepts
  • May introduce learning curve for new users
  • Best suited for projects already using Riverpod
  • Not recommended for simple one-off widgets
  • Performance depends on proper usage patterns

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Bloc Alternatives libraries

A collection of dart & flutter packages to work with Bloc

Packages

flutter_hooks_bloc

A reimplementation of flutter_bloc based on flutter_hooks.

Advantages:

  • Now you can use a useBloc hook function.
  • Bloc widgets has less compostion in te widget tree.
  • Widget inspector gives information about bloc/cubit.
  • It's easy to create a widget with a MultiBlocBuilder behavior.

riverbloc

Expose a BlocProvider based on Riverpod and can be use with flutter_riverpod or hooks_riverpod instead of flutter_bloc.

With this package, MultiBlocProvider is not necessary anymore. No more FlutterError/ProviderNotFoundException on context.bloc() invocation.

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

No data available yet.