app/lib/view/widgets/score_board.dart

28 lines
780 B
Dart
Raw Normal View History

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: [
2021-08-24 17:15:49 +02:00
Text(score, style: const TextStyle(fontSize: 23.0, fontWeight: FontWeight.bold, color: Colors.white))
2021-08-21 14:48:35 +02:00
],
),
2021-08-16 12:42:41 +02:00
);
}
}