Update scoreboard
This commit is contained in:
parent
c0533656ea
commit
aef1e58438
1 changed files with 11 additions and 1 deletions
|
@ -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))
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue