app/lib/view/widgets/score_board.dart
2021-08-24 22:15:49 +07:00

28 lines
No EOL
780 B
Dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class ScoreBoard extends StatelessWidget {
const ScoreBoard({Key? key, required this.score}) : super(key: key);
final String score;
@override
Widget build(BuildContext context) {
return Container(
width: 250,
height: 200,
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage('assets/images/content_score_board.png'),
)
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(score, style: const TextStyle(fontSize: 23.0, fontWeight: FontWeight.bold, color: Colors.white))
],
),
);
}
}