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 asWidgetRef.watch
are not exposed. - RiverpodAwareFlameGame
- RiverpodAwareGame
- RiverpodAwareGameNotifier
-
Simple
StateNotifier
that holds the current RiverpodAwareGame instance. - RiverpodGameWidget
Properties
-
riverpodAwareGameProvider
→ StateNotifierProvider<
RiverpodAwareGameNotifier, RiverpodAwareGameMixin?> -
Simple provider that returns a RiverpodAwareGame instance.
final