When using GameWidget, you can make multiple GameWidgets with multiple cameras, sharing the same game:
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: [
Expanded(
child: GameWidget(
game: this,
camera: camera1, // First camera view
),
),
Expanded(
child: GameWidget(
game: this,
camera: camera2, // Second camera view
),
),
],
),
);
}
RiverpodAwareGameWidget, which has to be initialized with a GlobalKey, cannot do this. It's a single, unique game per widget.
Add the ability to decouple the game from a specific GlobalKey, so it can be shared across an app.
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too