diff --git a/.github/.cspell/gamedev_dictionary.txt b/.github/.cspell/gamedev_dictionary.txt index 91316a6449c..642d8737ef9 100644 --- a/.github/.cspell/gamedev_dictionary.txt +++ b/.github/.cspell/gamedev_dictionary.txt @@ -6,7 +6,6 @@ AHSV # alpha hue saturation value antialiasing # set of techniques to combat the problems of aliasing ARGB # alpha red green blue arities # plural of arity -arity # number of parameters a function takes autofocus # auto focus event backgrounded # moving the app to the background backgrounding # moving the app to the background diff --git a/packages/flame_riverpod/lib/src/consumer.dart b/packages/flame_riverpod/lib/src/consumer.dart index d55f826e8f0..838340740c9 100644 --- a/packages/flame_riverpod/lib/src/consumer.dart +++ b/packages/flame_riverpod/lib/src/consumer.dart @@ -1,3 +1,4 @@ +import 'dart:async'; import 'package:flame/components.dart'; import 'package:flame/game.dart'; import 'package:flame_riverpod/src/widget.dart'; @@ -80,7 +81,7 @@ mixin RiverpodComponentMixin on Component { @mustCallSuper @override - void onLoad() { + FutureOr onLoad() { ref.game = findGame()! as RiverpodGameMixin; super.onLoad(); }