diff --git a/README.md b/README.md index 17e4cdb..8e586c4 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,3 @@ -# Bull's Eye +# BullsEye -A new Flutter project. - -## Getting Started - -This project is a starting point for a Flutter application. - -A few resources to get you started if this is your first Flutter project: - -- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) - -For help getting started with Flutter, view our -[online documentation](https://flutter.dev/docs), which offers tutorials, -samples, guidance on mobile development, and a full API reference. +A game written in Flutter, based on a tutorial with my own tweaks added. \ No newline at end of file diff --git a/lib/control.dart b/lib/control.dart index 334bd7b..7c4bb93 100644 --- a/lib/control.dart +++ b/lib/control.dart @@ -11,7 +11,7 @@ class Control extends StatefulWidget { } class _ControlState extends State { - static const double PADDING = 45; + static const double PADDING = 25; @override Widget build(BuildContext context) { diff --git a/lib/main.dart b/lib/main.dart index 16abd48..2dea0ed 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -80,10 +80,11 @@ class _GamePageState extends State { } Widget mobileContainer() { - return Column(mainAxisAlignment: MainAxisAlignment.center, children: [ + return SafeArea( + child: Column(mainAxisAlignment: MainAxisAlignment.center, children: [ gameContainer(), Score(totalScore: _model.totalScore, round: _model.round) - ]); + ])); } Widget desktopContainer() {