Flutter-Ernaehrungsapp/lib/android/components/meal_page_text/statistics_text_component.dart

20 lines
560 B
Dart
Raw Normal View History

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
));
}
}