Widget¶
RiverpodAwareGameWidget¶
RiverpodAwareGameWidget
is a GameWidget with a State
object of type
RiverpodAwareGameWidgetState
.
The required GlobalKey
argument is used to provide Component
s using RiverpodComponentMixin
access to Provider
s via RiverpodAwareGameWidgetState
.
RiverpodAwareGameWidgetState¶
RiverpodAwareGameWidgetState
performs the duties associated with the
ConsumerStatefulElement
in flutter_riverpod
and GameWidgetState
in flame
.
The content on this page is licensed under the CC BY 4.0 License,
and code samples under the MIT License.