You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
594 B
28 lines
594 B
import 'package:flutter/material.dart';
|
|
|
|
class MovesText extends StatelessWidget {
|
|
const MovesText({
|
|
Key? key,
|
|
required int moves,
|
|
required this.fontSize,
|
|
}) : _moves = moves,
|
|
super(key: key);
|
|
|
|
final int _moves;
|
|
final double fontSize;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: const EdgeInsets.fromLTRB(0, 8, 0, 24),
|
|
child: Text(
|
|
'$_moves Moves',
|
|
style: TextStyle(
|
|
fontSize: fontSize,
|
|
fontWeight: FontWeight.bold,
|
|
color: Colors.black,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|