20 lines
560 B
Dart
20 lines
560 B
Dart
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(
|
|
color: const Color.fromARGB(255, 211, 211, 211),
|
|
fontSize: titleOrSecondary ? 14 : 10,
|
|
fontWeight: titleOrSecondary ? FontWeight.w600 : FontWeight.w400
|
|
));
|
|
}
|
|
}
|