Use platform-aware UI library for native look and feel

- Added score layout
This commit is contained in:
Tony Bark 2021-05-28 05:34:28 -04:00
parent 9e475f6a34
commit 9c707d1e47
5 changed files with 41 additions and 12 deletions

25
lib/score.dart Normal file
View file

@ -0,0 +1,25 @@
import 'package:flutter/material.dart';
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
class Score extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
PlatformButton(
child: PlatformText("Start Over"),
onPressed: () {},
),
PlatformText("Score:"),
PlatformText("999"),
PlatformText("Round:"),
PlatformText("999"),
PlatformButton(
child: PlatformText("Info"),
onPressed: () {},
)
],
);
}
}