flame_riverpod library

Helpers for using Riverpod in conjunction with Flame, to share state from the game into other parts of your application, or from other parts of your application into your game.

Classes

ComponentRef
A wrapper around WidgetRef. Methods that correspond to interactions with the widget tree, such as WidgetRef.watch are not exposed.
RiverpodAwareGameNotifier
Simple StateNotifier that holds the current RiverpodAwareGame instance.

Properties

riverpodAwareGameProvider → StateNotifierProvider<RiverpodAwareGameNotifier, HasComponentRef?>
Simple provider that returns a Riverpod-Aware Game instance.
final