mirror of
https://github.com/tonytins/bullseye.git
synced 2025-03-15 12:21:21 +00:00
- The project was restarted using Android Studio. - Adoptive platform-specific widgets has been removed due to build issues with Android. - Dual-licensed under the BSD-3-Clause license and UNLICENSE.
44 lines
984 B
Dart
44 lines
984 B
Dart
import 'package:flutter/material.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: [
|
|
TextButton(
|
|
child: Text("Start Over"),
|
|
onPressed: () {},
|
|
),
|
|
Padding(
|
|
padding: const EdgeInsets.all(8.0),
|
|
child: Row(
|
|
children: [
|
|
Text("Score:"),
|
|
Text("$totalScore"),
|
|
],
|
|
),
|
|
),
|
|
Padding(
|
|
padding: const EdgeInsets.all(8.0),
|
|
child: Row(
|
|
children: [
|
|
Text("Round:"),
|
|
Text("$round"),
|
|
],
|
|
),
|
|
),
|
|
TextButton(
|
|
child: Text("Info"),
|
|
onPressed: () {},
|
|
)
|
|
],
|
|
);
|
|
}
|
|
}
|