Init
This commit is contained in:
commit
295625c70f
151 files changed
+10677
No files matched your search
@@ -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);
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user