|
|
@ -117,6 +117,7 @@ class PinballGameLoadedView extends StatelessWidget {
|
|
|
|
final gameWidgetWidth = 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) - (gameWidgetWidth / 1.8);
|
|
|
|
final leftMargin = (screenWidth / 2) - (gameWidgetWidth / 1.8);
|
|
|
|
|
|
|
|
final clampedMargin = leftMargin > 0 ? leftMargin : 0.0;
|
|
|
|
|
|
|
|
|
|
|
|
return Stack(
|
|
|
|
return Stack(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
@ -140,7 +141,7 @@ class PinballGameLoadedView extends StatelessWidget {
|
|
|
|
// status
|
|
|
|
// status
|
|
|
|
Positioned(
|
|
|
|
Positioned(
|
|
|
|
top: 16,
|
|
|
|
top: 16,
|
|
|
|
left: leftMargin,
|
|
|
|
left: clampedMargin,
|
|
|
|
child: const GameHud(),
|
|
|
|
child: const GameHud(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|