The personal finance app for everyone (by everyone)
Ruby
Add account filtering and net worth card to dashboard (#818)
Lazy Bone2ac3f3dff01c
diff --git a/mobile/lib/screens/main_navigation_screen.dart b/mobile/lib/screens/main_navigation_screen.dartindex 281524b275..8d002851f1 100644--- a/mobile/lib/screens/main_navigation_screen.dart+++ b/mobile/lib/screens/main_navigation_screen.dart@@ -13,7 +13,6 @@ class MainNavigationScreen extends StatefulWidget {class _MainNavigationScreenState extends State<MainNavigationScreen> {int _currentIndex = 0;- int _previousIndex = 0;final _dashboardKey = GlobalKey<DashboardScreenState>();late final List<Widget> _screens;@@ -39,12 +38,11 @@ class _MainNavigationScreenState extends State<MainNavigationScreen> {bottomNavigationBar: NavigationBar(selectedIndex: _currentIndex,onDestinationSelected: (index) {- _previousIndex = _currentIndex;setState(() {_currentIndex = index;});- // Reload preferences when switching back to dashboard from settings- if (index == 0 && _previousIndex == 3) {+ // Reload preferences whenever switching back to dashboard+ if (index == 0) {_dashboardKey.currentState?.reloadPreferences();}},diff --git a/mobile/lib/widgets/net_worth_card.dart b/mobile/lib/widgets/net_worth_card.dartindex 0d1c8ccda9..241a7b91e0 100644--- a/mobile/lib/widgets/net_worth_card.dart+++ b/mobile/lib/widgets/net_worth_card.dart@@ -36,23 +36,11 @@ class NetWorthCard extends StatelessWidget {// Net Worth Section (Placeholder)Padding(padding: const EdgeInsets.fromLTRB(16, 14, 16, 12),- child: Column(- children: [- Text(- 'Net Worth',- style: Theme.of(context).textTheme.labelMedium?.copyWith(- color: colorScheme.onSurfaceVariant,- ),- ),- const SizedBox(height: 2),- Text(- '--',- style: Theme.of(context).textTheme.headlineSmall?.copyWith(- fontWeight: FontWeight.bold,- color: colorScheme.onSurface,- ),- ),- ],+ child: Text(+ 'Net Worth — coming soon',+ style: Theme.of(context).textTheme.labelMedium?.copyWith(+ color: colorScheme.onSurfaceVariant,+ ),),),