bullseye/lib/score.dart
Tony Bark 593fda0975 Adpative layout
- 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
2021-05-29 12:01:35 -04:00

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: () {},
)
],
);
}
}