2021-05-28 05:34:28 -04:00
|
|
|
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;
|
|
|
|
|
2021-05-28 05:34:28 -04:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
2021-05-28 06:13:59 -04:00
|
|
|
children: [
|
2022-09-05 13:56:05 -04:00
|
|
|
TextButton(
|
|
|
|
child: Text("Start Over"),
|
2021-05-28 05:34:28 -04:00
|
|
|
onPressed: () {},
|
|
|
|
),
|
2021-05-28 06:13:59 -04:00
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
2022-09-05 13:56:05 -04:00
|
|
|
Text("Score:"),
|
|
|
|
Text("$totalScore"),
|
2021-05-28 06:13:59 -04:00
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
2022-09-05 13:56:05 -04:00
|
|
|
Text("Round:"),
|
|
|
|
Text("$round"),
|
2021-05-28 06:13:59 -04:00
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
2022-09-05 13:56:05 -04:00
|
|
|
TextButton(
|
|
|
|
child: Text("Info"),
|
2021-05-28 05:34:28 -04:00
|
|
|
onPressed: () {},
|
|
|
|
)
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|