|
|
@ -117,9 +117,9 @@ class PinballGameLoadedView extends StatelessWidget {
|
|
|
|
final isPlaying = context.select(
|
|
|
|
final isPlaying = context.select(
|
|
|
|
(StartGameBloc bloc) => bloc.state.status == StartGameStatus.play,
|
|
|
|
(StartGameBloc bloc) => bloc.state.status == StartGameStatus.play,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
final widthInRatio = MediaQuery.of(context).size.height * 9 / 16;
|
|
|
|
final gameWidgetWidth = MediaQuery.of(context).size.height * 9 / 16;
|
|
|
|
final screenWidth = MediaQuery.of(context).size.width;
|
|
|
|
final screenWidth = MediaQuery.of(context).size.width;
|
|
|
|
final leftMargin = (screenWidth / 2) - (widthInRatio / 1.8);
|
|
|
|
final leftMargin = (screenWidth / 2) - (gameWidgetWidth / 1.8);
|
|
|
|
|
|
|
|
|
|
|
|
return Stack(
|
|
|
|
return Stack(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|