buildLandscape method Null safety

  1. @override
Widget buildLandscape(
  1. BuildContext context,
  2. ScreenPositioner screen
)
override

Implementation

@override
Widget buildLandscape(BuildContext context, final ScreenPositioner screen) {
  return Container(
    // Midnight blue for slop when aspect ratio not matched
    alignment: Alignment.center,
    color: deadZoneColor,
    child: AspectRatio(
      aspectRatio: screen.width / screen.height,
      child: Stack(
        fit: StackFit.expand,
        children: [
          screen.box(Rect.fromLTWH(0, 0, screen.width, screen.height),
              CustomPaint(painter: DrawnBackground(screen))),
          screen.box(Rect.fromLTWH(screen.width - 1.82, 0.65, 0.94, 0.94),
              _jrpnIcon()),
          screen.box(
              const Rect.fromLTWH(
                  2.0, 0.6, 6.7, 1.5 * LcdDisplay.heightTweak),
              LcdDisplay(controller.model, _showMenu)),
          ...controller
              .getLandscapeButtonFactory(context, screen)
              .buildButtons(Rect.fromLTRB(
                  0.7, 2.75, screen.width - 0.7, screen.height - 0.47)),
          MainMenu(this, screen)
        ],
      ),
    ),
  );
}