From 24a3bb4d6edc457c1fa40d31493e851134d9e1a3 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 15 Aug 2022 17:20:21 +0300 Subject: [PATCH] Dashboard overview --- lib/ui/dashboard/dashboard_screen.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ui/dashboard/dashboard_screen.dart b/lib/ui/dashboard/dashboard_screen.dart index 3e7abba23..6dad005f2 100644 --- a/lib/ui/dashboard/dashboard_screen.dart +++ b/lib/ui/dashboard/dashboard_screen.dart @@ -61,7 +61,7 @@ class _DashboardScreenState extends State final state = widget.viewModel.state; final company = state.company; - final entityType = state.dashboardUIState.selectedEntityType; + //final entityType = state.dashboardUIState.selectedEntityType; [ EntityType.invoice, @@ -75,7 +75,7 @@ class _DashboardScreenState extends State } }); - final index = _tabs.contains(entityType) ? _tabs.indexOf(entityType) : 0; + //final index = _tabs.contains(entityType) ? _tabs.indexOf(entityType) : 0; int mainTabCount = 3; if (state.prefState.isMobile) { @@ -84,7 +84,7 @@ class _DashboardScreenState extends State _mainTabController = TabController(vsync: this, length: mainTabCount); _sideTabController = - TabController(vsync: this, length: _tabs.length, initialIndex: index) + TabController(vsync: this, length: _tabs.length, initialIndex: 0) ..addListener(onTabListener); _scrollController = ScrollController( // initialScrollOffset: (index > 0 ? index + 1 : 0) *