import 'package:flutter/material.dart'; void main() => runApp(BullsEyeApp()); class BullsEyeApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'BullsEye', theme: ThemeData( primarySwatch: Colors.blue, ), home: GamePage(title: 'BullsEye'), ); } } class GamePage extends StatefulWidget { GamePage({Key? key, this.title}) : super(key: key); final String? title; @override _GamePageState createState() => _GamePageState(); } class _GamePageState extends State { @override Widget build(BuildContext context) { return Scaffold( body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Text("Hello World!", style: TextStyle( fontWeight: FontWeight.bold, color: Colors.green)), TextButton(child: Text('Hit me!'), onPressed: () {}) ], ), ), ); } }