|
|
@ -100,22 +100,25 @@ class PinballGameLoadedView extends StatelessWidget {
|
|
|
|
focusNode: game.focusNode,
|
|
|
|
focusNode: game.focusNode,
|
|
|
|
initialActiveOverlays: const [PinballGame.playButtonOverlay],
|
|
|
|
initialActiveOverlays: const [PinballGame.playButtonOverlay],
|
|
|
|
overlayBuilderMap: {
|
|
|
|
overlayBuilderMap: {
|
|
|
|
PinballGame.playButtonOverlay: (context, game) {
|
|
|
|
PinballGame.playButtonOverlay: (_, game) => const Positioned(
|
|
|
|
return const Positioned(
|
|
|
|
bottom: 20,
|
|
|
|
bottom: 20,
|
|
|
|
right: 0,
|
|
|
|
right: 0,
|
|
|
|
left: 0,
|
|
|
|
left: 0,
|
|
|
|
child: PlayButtonOverlay(),
|
|
|
|
child: PlayButtonOverlay(),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
PinballGame.mobileControlsOverlay: (_, game) => Positioned(
|
|
|
|
},
|
|
|
|
bottom: 0,
|
|
|
|
PinballGame.mobileControlsOverlay: (context, game) {
|
|
|
|
left: 0,
|
|
|
|
return Positioned(
|
|
|
|
right: 0,
|
|
|
|
bottom: 0,
|
|
|
|
child: MobileControls(game: game),
|
|
|
|
left: 0,
|
|
|
|
),
|
|
|
|
right: 0,
|
|
|
|
PinballGame.replayButtonOverlay: (context, game) =>
|
|
|
|
child: MobileControls(game: game),
|
|
|
|
const Positioned(
|
|
|
|
);
|
|
|
|
bottom: 20,
|
|
|
|
},
|
|
|
|
right: 0,
|
|
|
|
|
|
|
|
left: 0,
|
|
|
|
|
|
|
|
child: ReplayButtonOverlay(),
|
|
|
|
|
|
|
|
)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|