This commit is contained in:
2026-03-20 09:26:14 +03:00
parent 3dcbb6164e
commit 99d985ca45
11 changed files with 1065 additions and 114 deletions
+37 -1
View File
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import '../shared/models/transaction.dart';
class AppColors {
static const background = Color(0xFF0F0F14);
@@ -9,16 +10,45 @@ class AppColors {
static const textPrimary = Color(0xFFEEEEF5);
static const textSecondary = Color(0xFF8888A0);
static const divider = Color(0xFF2A2A38);
static const warning = Color(0xFFFFB74D);
}
class AppCategories {
static const all = ['Food', 'Transport', 'Shopping', 'Health', 'Other'];
static const expenseCategories = [
'Food',
'Transport',
'Shopping',
'Health',
'Entertainment',
'Other'
];
static const incomeCategories = [
'Salary',
'Freelance',
'Gift',
'Investment',
'Refund',
'Other'
];
static List<String> forType(TransactionType type) {
return type == TransactionType.expense
? expenseCategories
: incomeCategories;
}
static const icons = {
'Food': Icons.restaurant_rounded,
'Transport': Icons.directions_car_rounded,
'Shopping': Icons.shopping_bag_rounded,
'Health': Icons.favorite_rounded,
'Entertainment': Icons.movie_rounded,
'Salary': Icons.work_rounded,
'Freelance': Icons.laptop_rounded,
'Gift': Icons.card_giftcard_rounded,
'Investment': Icons.trending_up_rounded,
'Refund': Icons.money_rounded,
'Other': Icons.category_rounded,
};
@@ -27,6 +57,12 @@ class AppCategories {
'Transport': Color(0xFF69B4FF),
'Shopping': Color(0xFFFFD369),
'Health': Color(0xFF69FFB4),
'Entertainment': Color(0xFFFF69B4),
'Salary': Color(0xFF4CAF8C),
'Freelance': Color(0xFF69FFB4),
'Gift': Color(0xFFFFB469),
'Investment': Color(0xFF69B4FF),
'Refund': Color(0xFFB4FF69),
'Other': Color(0xFFB469FF),
};
}