Athena — roomy-mobile/archive/changes/2025-12-28-fix-home-expense-widget-reactivity/proposal.md

Change: Fix Home Page Expense Widget Reactivity and DatePicker

Why

The home page expense widget (TUserExpenseSummaryCard) does not update when expenses are created or modified, and the datepicker is non-functional. The same widget works correctly in PaymentsView because it uses proper reactive patterns.

What Changes

  • HomeViewModel: Expose paymentsListenable and add date range state/methods
  • HomeView: Wrap expense widget in ListenableBuilder and pass all datepicker parameters
  • No graphs on home page (summary cards only)

Impact

  • Affected code: home_view.dart, home_view_model.dart
  • Reference code: payments_view.dart, payments_view_model.dart
  • No breaking changes

Reacties

Nog geen reacties