mirror of
https://github.com/tonytins/bullseye.git
synced 2025-03-15 12:21:21 +00:00
- The desktop version has the score, ect, in the title bar area now while the mobile version remains the same - Capitalized "bullseye" - Used "late" keyword for certain variables - Updated application Id
45 lines
1.1 KiB
Dart
45 lines
1.1 KiB
Dart
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: [
|
|
PlatformTextButton(
|
|
child: PlatformText("Start Over"),
|
|
onPressed: () {},
|
|
),
|
|
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: () {},
|
|
)
|
|
],
|
|
);
|
|
}
|
|
}
|