Skip to content

Commit

Permalink
Merge pull request #469 from dreautall/feature/refresh-main-page-on-t…
Browse files Browse the repository at this point in the history
…x-update

Refresh Main Page on TX Update
  • Loading branch information
dreautall authored Oct 26, 2024
2 parents 99cd2b0 + 46bfa76 commit e13b093
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 e13b093

Please sign in to comment.