bullseye/lib/score.dart

45 lines
984 B
Dart
Raw Permalink Normal View History

import 'package:flutter/material.dart';
class Score extends StatelessWidget {
2021-05-28 06:13:59 -04:00
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,
2021-05-28 06:13:59 -04:00
children: [
TextButton(
child: Text("Start Over"),
onPressed: () {},
),
2021-05-28 06:13:59 -04:00
Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
children: [
Text("Score:"),
Text("$totalScore"),
2021-05-28 06:13:59 -04:00
],
),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
children: [
Text("Round:"),
Text("$round"),
2021-05-28 06:13:59 -04:00
],
),
),
TextButton(
child: Text("Info"),
onPressed: () {},
)
],
);
}
}