mirror of
https://github.com/tonytins/bullseye.git
synced 2025-06-26 02:44:42 -04:00
Game model
This commit is contained in:
parent
9c707d1e47
commit
36c7e3d59b
4 changed files with 78 additions and 23 deletions
|
@ -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: () {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue