Individual and Jwellery Account Setup done
This commit is contained in:
@@ -22,7 +22,7 @@ import '../../sales/domain/invoice.dart';
|
||||
import '../../sales/presentation/customers_list_screen.dart';
|
||||
import 'widgets/swipeable_account_card.dart';
|
||||
import 'widgets/budget_status_card.dart';
|
||||
import '../../inventory/presentation/daily_rates_screen.dart';
|
||||
|
||||
import 'widgets/upcoming_dues_widget.dart';
|
||||
import 'widgets/statistics_tab.dart';
|
||||
import '../../../core/widgets/shimmer_loading.dart';
|
||||
@@ -185,17 +185,6 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
|
||||
backgroundColor: Colors.transparent,
|
||||
elevation: 0,
|
||||
actions: [
|
||||
if (isBusinessMode)
|
||||
IconButton(
|
||||
icon: const Icon(LucideIcons.trendingUp),
|
||||
tooltip: 'Daily Commodity Rates',
|
||||
onPressed: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (_) => const DailyRatesScreen()),
|
||||
);
|
||||
},
|
||||
),
|
||||
Consumer(
|
||||
builder: (context, ref, child) {
|
||||
final invitationsState = ref.watch(invitationProvider);
|
||||
@@ -632,9 +621,6 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
|
||||
),
|
||||
));
|
||||
|
||||
if (isProjectMode) {
|
||||
screens.add(const ProjectHubScreen());
|
||||
}
|
||||
|
||||
if (isBusinessMode) {
|
||||
screens.add(const BusinessHubScreen());
|
||||
@@ -668,11 +654,9 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
|
||||
),
|
||||
bottomNavigationBar: Builder(
|
||||
builder: (context) {
|
||||
final isProjectMode = ref.watch(projectModeProvider);
|
||||
final isBusinessMode = ref.watch(businessModeProvider);
|
||||
final List<BottomNavigationBarItem> navItems = [];
|
||||
navItems.add(const BottomNavigationBarItem(icon: Icon(LucideIcons.home), label: 'Home'));
|
||||
if (isProjectMode) navItems.add(const BottomNavigationBarItem(icon: Icon(LucideIcons.trello), label: 'Projects'));
|
||||
if (isBusinessMode) navItems.add(const BottomNavigationBarItem(icon: Icon(LucideIcons.briefcase), label: 'Business'));
|
||||
navItems.add(const BottomNavigationBarItem(icon: Icon(LucideIcons.pieChart), label: 'Stats'));
|
||||
navItems.add(const BottomNavigationBarItem(icon: Icon(LucideIcons.plusCircle), label: 'Add'));
|
||||
@@ -682,7 +666,6 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
|
||||
int safeIndex = _currentIndex;
|
||||
// Adjust _currentIndex for the display of bottom nav bar because of 'Add' button
|
||||
int addIdx = 1;
|
||||
if (isProjectMode) addIdx++;
|
||||
if (isBusinessMode) addIdx++;
|
||||
addIdx++; // For Stats
|
||||
|
||||
|
||||
Reference in New Issue
Block a user