Skip to content
CAI
Software that uses CAICheck a score

rrousselGit/provider

62.8

Adequate · 12 November 2026

5.6k

lines of production code

Dart

primary language

8

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a state management library for Flutter that provides widgets for injecting and consuming dependencies, including specialized providers for synchronous values, asynchronous futures, and reactive streams. It features a Selector widget to optimize performance by filtering rebuilds based on specific data changes, and includes a DevTools extension for inspecting provider state during development. The codebase has been modernized to support null safety and enforces strict linting standards.

How it got here

2018 — Legacy cleanup and package restructuring

6 changes.

This period focused on removing legacy code, including the old Provider class, its entry points, and associated tests, to streamline the library's API. The work also involved cleaning up auto-generated platform files, adopting strict linting rules, and establishing the initial dependency manifests for the provider ecosystem and DevTools extension.

2019–2023 — Provider v2 API and DevTools integration

8 changes.

This period focused on the release of Provider v2, which introduced a restructured public API, new provider types like StreamProvider and FutureProvider, and the Selector widget for optimized rebuilds. Significant effort was also dedicated to developing a dedicated DevTools extension for inspecting provider state, alongside updating the example application and test suites to support null safety and leak detection.

Features

Example app now supports the Provider DevTools extension

The \packages/provider/example\ application has been updated to enable the Provider DevTools extension. A new \devtools\_options.yaml\ file explicitly registers the provider extension, allowing developers to inspect and debug state management within this example app using Flutter DevTools. The example code itself has also been refactored to use \headlineMedium\ instead of the deprecated \headline4\ text style and includes minor linting fixes.

packages/provider/example · high confidence

Initial DevTools extension for Provider

A new DevTools extension for the Provider package has been added, enabling users to inspect Provider state within the Flutter DevTools interface. The extension is configured with the name 'provider', a specific Material icon, and a link to the project's issue tracker.

packages/provider/extension · high confidence

Introduce new provider types and Selector for granular rebuilds

This release adds new provider widgets to handle asynchronous and reactive data sources: \StreamProvider\ and \FutureProvider\ expose values from Dart streams and futures with support for initial data and error handling via \catchError\, while \ValueListenableProvider\ wraps Flutter's \ValueListenable\ for easy integration with existing reactive patterns. The core provider architecture has been refactored to use \InheritedProvider\ as the base for all provider types, enabling better extensibility and compatibility with \MultiProvider\. Additionally, a new \Selector\ widget is introduced, allowing consumers to filter updates by selecting specific properties from a provider's value, which prevents unnecessary rebuilds when only a subset of the data changes.

packages/provider/lib/src · high confidence

New DevTools extension for inspecting package:provider state

A new DevTools extension has been added for \package:provider\, providing a dedicated UI to inspect and debug provider state. The extension features a split-pane view: a list of all detected providers on the left, and a detailed instance viewer on the right that allows users to expand and inspect the values of selected providers. It supports navigating through complex data structures like lists, maps, and objects, and includes a setting to toggle the visibility of private properties inherited from SDKs or packages. The extension integrates with the DevTools infrastructure to handle hot reloads and updates the view when provider states change.

_packages/provider\_devtools\extension · high confidence

New example app demonstrating Provider patterns

The example application in \packages/provider/example/lib\ has been replaced with a new implementation that demonstrates core Provider usage patterns. It showcases using \MultiProvider\ to supply a \ChangeNotifier\-based \Counter\ model, reading state via \context.read\ in the floating action button to avoid unnecessary rebuilds, and watching state via \context.watch\ in a separate \Count\ widget. The example also includes \DiagnosticableTreeMixin\ on the model to enable property inspection in Flutter DevTools.

packages/provider/example/lib · high confidence

Removals

Removal of legacy Provider class implementation

The legacy \Provider\ class, which previously exposed values via \InheritedWidget\ and provided a static \of\ method for retrieval, has been removed from the library. Users relying on this specific class and its \Provider.of\ API will need to migrate to the current provider implementations.

lib/src · high confidence

Removal of legacy provider.dart entry point

The top-level \lib/provider.dart\ file has been removed. This file previously served as the main entry point for the library, re-exporting \src/provider.dart\. Users relying on this specific import path will need to update their imports to point directly to the source file or the new package structure.

lib · high confidence

Behavioural changes

Adopts strict linting and adds DevTools extension build script

The project now enforces a comprehensive set of Dart lints via a new \all\_lint\_rules.yaml\ file, included in \analysis\_options.yaml\ with specific overrides to balance strictness and readability. Additionally, a new \build\_devtool.sh\ script has been added to automate the build and copy process for the Provider DevTools extension, and legacy CI configuration (\travis.yaml\) along with an outdated \README.md\ have been removed.

(repo-wide) · high confidence

Provider v2 API restructure and Selector introduction

The provider package has been updated to version 2, introducing a new public API surface in \provider.dart\ that exports core providers (such as \ChangeNotifierProvider\, \ProxyProvider\, and \ValueListenableProvider\), consumers, and the new \Selector\ widget for optimized rebuilds. The library also re-exports \InheritedProvider\ and related context utilities, while \single\_child\_widget.dart\ now delegates to the \nested\ package to manage widget composition.

packages/provider/lib · high confidence

Removal of Flutter-generated plugin registrant and local configuration files

The project has removed several auto-generated files from both the Android and iOS platforms. On Android, the \GeneratedPluginRegistrant.java\ class and the \local.properties\ file (which contained local SDK paths) have been deleted. On iOS, the \Generated.xcconfig\ configuration file and the \GeneratedPluginRegistrant.h\ and \.m\ header/implementation files have been removed. These changes typically occur when migrating away from older Flutter plugin registration mechanisms or cleaning up generated artifacts that are no longer needed or are managed differently by the build system.

android, ios · high confidence

Test coverage

Added smoke tests for the example application; Removal of legacy provider test suite; Updated provider tests for null safety and leak detection.

Dependencies

Initial dependency manifests for provider packages

This change introduces the initial dependency configuration files for the provider ecosystem. The main \provider\ package (v6.1.5+1) is defined with dependencies on \collection\ and \nested\, while the \provider\_devtools\_extension\ (v0.0.1) is configured with dependencies on \devtools\_extensions\, \devtools\_app\_shared\, and \flutter\_riverpod\. An example app and the root workspace manifest are also established to support the project structure.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 55 → 63 (+8.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 92 → 92 (+0.0)
  • Architecture 99 → 99 (+0.0)
  • Maturity 28 → 42 (+13.7)
  • Readiness 60 → 67 (+6.8)
  • Security 90 → 90 (+0.0)
  • Performance 100 → 100 (+0.0)

New (4)

  • Edited copies of one member (3 members, 11+ corresponding lines) (packages/provider/lib/src/consumer.dart)
  • Edited copy of a member (25 corresponding lines) (packages/provider/lib/src/deferred_inherited_provider.dart)
  • Edited copy of a member (38 corresponding lines) (packages/provider_devtools_extension/lib/src/instance_viewer/instance_viewer.dart)
  • Edited copy of a member (5 corresponding lines) (packages/provider/lib/src/selector.dart)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

rrousselGit/provider was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 12 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 3ed4c6d6b1700c08256f25a034bb93f943bd7236 — the exact code this score is about.
  • Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.42+preprod-6bc2a431cb25.