Skip to content

Commit

Permalink
refresh Main Page Charts when transactions are updated
Browse files Browse the repository at this point in the history
fixes #456
  • Loading branch information
dreautall committed Oct 26, 2024
1 parent 99cd2b0 commit 46bfa76
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/pages/home/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,17 @@ class _HomeMainState extends State<HomeMain>
final List<InsightGroupEntry> catChartData = <InsightGroupEntry>[];
final Map<String, Budget> budgetInfos = <String, Budget>{};

@override
void initState() {
super.initState();

context.read<FireflyService>().transStock!.addListener(_refreshStats);
}

@override
void dispose() {
context.read<FireflyService>().transStock!.removeListener(_refreshStats);

super.dispose();
}

Expand Down

0 comments on commit 46bfa76

Please sign in to comment.