refactor: update transaction type from TransactionRecord to Transaction

This commit is contained in:
2025-05-03 17:00:39 +03:00
committed by Sanders
parent b78ed61661
commit d0e6feb874
+2 -2
View File
@@ -84,7 +84,7 @@ class _ExpensesScreenState extends State<ExpensesScreen> with TickerProviderStat
}
// Stream that provides transactions based on the selected filter
Stream<List<db.TransactionRecord>> _watchTransactions() {
Stream<List<db.Transaction>> _watchTransactions() {
return widget.database.watchFilteredTransactions(_selectedFilter);
}
@@ -464,7 +464,7 @@ class _ExpensesScreenState extends State<ExpensesScreen> with TickerProviderStat
side: BorderSide(color: theme.dividerColor.withOpacity(0.5), width: 1) // Subtle border
),
clipBehavior: Clip.antiAlias, // Clip list items to card shape
child: StreamBuilder<List<db.TransactionRecord>>(
child: StreamBuilder<List<db.Transaction>>(
stream: _watchTransactions(), // Stream based on _selectedFilter
builder: (context, transactionSnapshot) {
// Handle loading state for transactions