content: import 'package:flutter/material.dart';
  import 'constants.dart';
  import '../components/components.dart';
  import '../models/models.dart';
  import '../screens/screens.dart';
  
  class Home extends StatefulWidget {
    const Home({
      super.key,
      required this.auth,
      required this.cartManager,
      required this.ordersManager,
      required this.changeTheme,
      required this.changeColor,
      required this.colorSelected,
      required this.tab,
    });
  
    final YummyAuth auth;
    final int tab;
    final CartManager cartManager;
    final OrderManager ordersManager;
    final ColorSelection colorSelected;
    final void Function(bool useLightMode) changeTheme;
    final void Function(int value) changeColor;
  
    @override
    State<Home> createState() => _HomeState();
  }
  
  class _HomeState extends State<Home> {
    List<NavigationDestination> appBarDestinations = const [
      NavigationDestination(
        icon: Icon(Icons.home_outlined),
        label: 'Explore',
        selectedIcon: Icon(Icons.home),
      ),
      NavigationDestination(
        icon: Icon(Icons.list_outlined),
        label: 'Orders',
        selectedIcon: Icon(Icons.list),
      ),
      NavigationDestination(
        icon: Icon(Icons.person_2_outlined),
        label: 'Account',
        selectedIcon: Icon(Icons.person),
      )
    ];
  
    @override
    Widget build(BuildContext context) {
      final pages = [
        ExplorePage(
          cartManager: widget.cartManager,
          orderManager: widget.ordersManager,
        ),
        MyOrdersPage(orderManager: widget.ordersManager),
        AccountPage(
            onLogOut: (logout) async {
              // TODO: Logout and go to login
            },
            user: User(
                firstName: 'Stef',
                lastName: 'P',
                role: 'Flutteristas',
                profileImageUrl: 'assets/profile_pics/person_stef.jpeg',
                points: 100,
                darkMode: true))
      ];
  
      return Scaffold(
        appBar: AppBar(
          elevation: 0.0,
          backgroundColor: Theme.of(context).colorScheme.background,
          actions: [
            ThemeButton(
              changeThemeMode: widget.changeTheme,
            ),
            ColorButton(
              changeColor: widget.changeColor,
              colorSelected: widget.colorSelected,
            ),
          ],
        ),
        body: IndexedStack(index: widget.tab, children: pages),
        bottomNavigationBar: NavigationBar(
          selectedIndex: widget.tab,
          onDestinationSelected: (index) {
            // TODO: Navigate to specific tab
          },
          destinations: appBarDestinations,
        ),
      );
    }
  }
  