Flutter code restructuring

This commit is contained in:
Mikkeli Matlock
2026-01-25 18:47:35 +09:00
parent addf006c56
commit 00ad413022
8 changed files with 241 additions and 239 deletions

View File

@@ -0,0 +1,30 @@
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,
),
),
],
);
}
}