Game model

This commit is contained in:
Tony Bark 2021-05-28 06:13:59 -04:00
parent 9c707d1e47
commit 36c7e3d59b
4 changed files with 78 additions and 23 deletions

View file

@ -2,19 +2,39 @@ import 'package:flutter/material.dart';
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
class Score extends StatelessWidget {
Score({Key? key, @required this.totalScore, @required this.round})
: super(key: key);
final int? totalScore;
final int? round;
@override
Widget build(BuildContext context) {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
children: [
PlatformButton(
child: PlatformText("Start Over"),
onPressed: () {},
),
PlatformText("Score:"),
PlatformText("999"),
PlatformText("Round:"),
PlatformText("999"),
Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
children: [
PlatformText("Score:"),
PlatformText("$totalScore"),
],
),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
children: [
PlatformText("Round:"),
PlatformText("$round"),
],
),
),
PlatformButton(
child: PlatformText("Info"),
onPressed: () {},