bullseye/lib/score.dart

46 lines
1.1 KiB
Dart
Raw Normal View History

import 'package:flutter/material.dart';
import 'package:flutter_platform_widgets/flutter_platform_widgets.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: [
PlatformTextButton(
child: PlatformText("Start Over"),
onPressed: () {},
),
2021-05-28 06:13:59 -04:00
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"),
],
),
),
PlatformTextButton(
child: PlatformText("Info"),
onPressed: () {},
)
],
);
}
}