bullseye/lib/main.dart
2021-05-08 19:00:08 -04:00

44 lines
1 KiB
Dart

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<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: () {})
],
),
),
);
}
}