2023-05-29 12:08:46 +02:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
|
|
|
class StaticsTextComponent extends StatelessWidget {
|
|
|
|
final String name;
|
|
|
|
final bool titleOrSecondary;
|
|
|
|
|
|
|
|
const StaticsTextComponent(this.name, this.titleOrSecondary, {super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Text(name,
|
|
|
|
textAlign: TextAlign.left,
|
|
|
|
style: TextStyle(
|
2023-05-30 21:03:46 +02:00
|
|
|
color: const Color(0xff000000),
|
|
|
|
fontSize: titleOrSecondary ? 15 : 13,
|
2023-05-29 12:08:46 +02:00
|
|
|
fontWeight: titleOrSecondary ? FontWeight.w600 : FontWeight.w400
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|