2021-08-21 14:48:35 +02:00
|
|
|
import 'package:flutter/cupertino.dart';
|
2021-08-16 12:42:41 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class ScoreBoard extends StatelessWidget {
|
2021-08-21 14:48:35 +02:00
|
|
|
const ScoreBoard({Key? key, required this.score}) : super(key: key);
|
|
|
|
|
|
|
|
final String score;
|
2021-08-16 12:42:41 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Container(
|
|
|
|
width: 250,
|
|
|
|
height: 200,
|
|
|
|
decoration: const BoxDecoration(
|
|
|
|
image: DecorationImage(
|
|
|
|
image: AssetImage('assets/images/content_score_board.png'),
|
|
|
|
)
|
|
|
|
),
|
2021-08-21 14:48:35 +02:00
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text(score, style: const TextStyle(fontSize: 20.0, fontWeight: FontWeight.bold))
|
|
|
|
],
|
|
|
|
),
|
2021-08-16 12:42:41 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|