Files
smart-serow/pi/ui/lib/widgets/stat_box.dart

31 lines
700 B
Dart
Raw Normal View History

2026-01-25 18:47:35 +09:00
import 'package:flutter/material.dart';
/// A labeled stat display box for the dashboard
class StatBox extends StatelessWidget {
final String label;
final String value;
const StatBox({super.key, required this.label, required this.value});
@override
Widget build(BuildContext context) {
return Column(
children: [
Text(
value,
style: Theme.of(context).textTheme.headlineMedium?.copyWith(
color: Colors.white,
),
),
Text(
label,
style: Theme.of(context).textTheme.bodySmall?.copyWith(
color: Colors.grey,
letterSpacing: 1,
),
),
],
);
}
}