Skip to main content

capybara_devtools_riverpod 0.1.0 copy "capybara_devtools_riverpod: ^0.1.0" to clipboard
capybara_devtools_riverpod: ^0.1.0 copied to clipboard

Shows a Flutter app's Riverpod providers, and how each changed, in Capybara's State tab.

capybara_devtools_riverpod #

Shows a Flutter app's Riverpod providers in Capybara's State tab, with what each change did: one store per ProviderScope, its state a map from each provider's name to its value.

Works with Riverpod 3, next to capybara_devtools, which connects the app to Capybara.

Use #

void main() {
  Capybara.run(() {
    WidgetsFlutterBinding.ensureInitialized();
    runApp(const ProviderScope(observers: [CapybaraRiverpodObserver()], child: MyApp()));
  });
}

Each provider shows under its name: riverpod_generator names them, other providers need name: '…' or show as their type. A family's providers show with their argument, as todo(42). Async values show as {loading: true}, {data: …} or {error: …}.

In release builds the observer does nothing.

0
likes
160
points
459
downloads

Documentation

API reference

Publisher

verified publishercapybara.lhphuc.com

Weekly Downloads

Shows a Flutter app's Riverpod providers, and how each changed, in Capybara's State tab.

Homepage
Repository (GitHub)
View/report issues

Topics

#devtools #debugging #riverpod #state-management #flutter

License

MIT (license)

Dependencies

capybara_devtools, flutter, riverpod

More

Packages that depend on capybara_devtools_riverpod