import 'package:flutter/material.dart'; import 'package:pinball/game/game.dart'; import 'package:pinball/l10n/l10n.dart'; class LandingPage extends StatelessWidget { const LandingPage({Key? key}) : super(key: key); @override Widget build(BuildContext context) { final l10n = context.l10n; return Scaffold( body: Center( child: TextButton( onPressed: () => Navigator.of(context).push(PinballGamePage.route()), child: Text(l10n.play), ), ), ); } }