Bold.dart 630B

1234567891011121314151617181920212223242526272829
  1. import 'package:flutter/widgets.dart';
  2. class Bold extends StatelessWidget {
  3. String text;
  4. double fontSize;
  5. Color? color;
  6. double? letterSpacing;
  7. TextAlign? textAlign;
  8. Bold({Key? key,
  9. required this.text,
  10. required this.fontSize,
  11. this.color,
  12. this.letterSpacing,
  13. this.textAlign,
  14. }) : super(key: key);
  15. @override
  16. Widget build(BuildContext context) {
  17. var textStyle = TextStyle(color: color, fontSize: fontSize, fontWeight: FontWeight.bold, letterSpacing: letterSpacing);
  18. return Text(
  19. text,
  20. style: textStyle,
  21. textAlign: textAlign,
  22. );
  23. }
  24. }