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.

26 lines
556 B

2 years ago
  1. import 'package:flutter/material.dart';
  2. class PlayerText extends StatelessWidget {
  3. final String displayName;
  4. const PlayerText({
  5. Key? key,
  6. required this.displayName,
  7. }) : super(key: key);
  8. @override
  9. Widget build(BuildContext context) {
  10. return Padding(
  11. padding: const EdgeInsets.only(top: 24.0),
  12. child: Text(
  13. displayName,
  14. style: const TextStyle(
  15. fontSize: 20,
  16. fontWeight: FontWeight.bold,
  17. color: Color(0xFF14407a),
  18. letterSpacing: 2,
  19. ),
  20. ),
  21. );
  22. }
  23. }