2021-04-28 06:07:43 -04:00
|
|
|
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 {
|
2021-05-08 19:00:08 -04:00
|
|
|
GamePage({Key? key, this.title}) : super(key: key);
|
|
|
|
final String? title;
|
2021-04-28 06:07:43 -04:00
|
|
|
|
|
|
|
@override
|
|
|
|
_GamePageState createState() => _GamePageState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _GamePageState extends State<GamePage> {
|
|
|
|
@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: () {})
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|