Update scoreboard

This commit is contained in:
Moe Poi ~ 2021-08-21 19:48:35 +07:00
parent c0533656ea
commit aef1e58438

View file

@ -1,7 +1,10 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class ScoreBoard extends StatelessWidget {
const ScoreBoard({Key? key}) : super(key: key);
const ScoreBoard({Key? key, required this.score}) : super(key: key);
final String score;
@override
Widget build(BuildContext context) {
@ -13,6 +16,13 @@ class ScoreBoard extends StatelessWidget {
image: AssetImage('assets/images/content_score_board.png'),
)
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(score, style: const TextStyle(fontSize: 20.0, fontWeight: FontWeight.bold))
],
),
);
}
}