diff --git a/mobile/lib/screens/main_navigation_screen.dart b/mobile/lib/screens/main_navigation_screen.dart index 281524b27..8d002851f 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 { int _currentIndex = 0; - int _previousIndex = 0; final _dashboardKey = GlobalKey(); late final List _screens; @@ -39,12 +38,11 @@ class _MainNavigationScreenState extends State { 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.dart index 0d1c8ccda..241a7b91e 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, + ), ), ),