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

2 years ago
  1. import 'package:flutter/material.dart';
  2. class MovesText extends StatelessWidget {
  3. const MovesText({
  4. Key? key,
  5. required int moves,
  6. required this.fontSize,
  7. }) : _moves = moves,
  8. super(key: key);
  9. final int _moves;
  10. final double fontSize;
  11. @override
  12. Widget build(BuildContext context) {
  13. return Padding(
  14. padding: const EdgeInsets.fromLTRB(0, 8, 0, 24),
  15. child: Text(
  16. '$_moves Moves',
  17. style: TextStyle(
  18. fontSize: fontSize,
  19. fontWeight: FontWeight.bold,
  20. color: Colors.black,
  21. ),
  22. ),
  23. );
  24. }
  25. }