This commit is contained in:
Sanders committed 2025-05-12 19:08:22 +03:00
commit 295625c70f
151 files changed
+10677

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import 'package:flutter/material.dart';
class Category {
final String name;
final double amount;
final Color colorCode;
final IconData iconCode;
Category(this.name, this.amount, this.colorCode, this.iconCode);
}
+23
View File
@@ -0,0 +1,23 @@
import 'package:flutter/material.dart';
import 'category.dart';
class TransactionRecord {
final int id;
final String type; // 'income' or 'expense'
final double amount;
final Category? category; // Reference to category (null for income)
final DateTime date;
final String merchant;
TransactionRecord({
required this.id,
required this.type,
required this.amount,
this.category,
required this.date,
required this.merchant,
});
// Removed the hardcoded id getter
// get id => 1;
}