refactor: update transaction type from TransactionRecord to Transaction
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user