admin user able to create test txs

This commit is contained in:
davmar
2026-09-10 23:18:24 +02:00
parent c4f0ca785e
commit f8e293f823
13 changed files with 507 additions and 111 deletions
+16
View File
@@ -12,6 +12,22 @@ abstract final class AppTheme {
/// Soft rose for expenses / money out.
static const Color expense = Color(0xFFE07A7A);
/// Amber mid-stop for budget progress (between mint and rose).
static const Color budgetWarn = Color(0xFFE5A24A);
/// Budget chart fill: green when low → amber → red as usage rises.
static Color budgetProgressFill(double progress) {
final t = progress.clamp(0.0, 1.0);
if (t <= 0.55) {
// Stay mostly mint through ~half the budget.
return Color.lerp(accent, budgetWarn, (t / 0.55) * 0.45)!;
}
if (t <= 0.85) {
return Color.lerp(budgetWarn, expense, (t - 0.55) / 0.30)!;
}
return Color.lerp(expense, const Color(0xFFD94C4C), (t - 0.85) / 0.15)!;
}
/// Near-black charcoal scaffold (dark).
static const Color darkCanvas = Color(0xFF0B0D0C);