content: // TODO: Add Firebase core and options imports
  import 'package:flutter/material.dart';
  import 'package:flutter_riverpod/flutter_riverpod.dart';
  
  import 'constants.dart';
  import 'home.dart';
  
  Future<void> main() async {
    // Ensure there is platform channel to native code for Firebase Initialization
    WidgetsFlutterBinding.ensureInitialized();
  
    // TODO: Add Firebase App Initialization
  
    runApp(
      // ProviderScope stores all providers state
      const ProviderScope(
        child: Yummy(),
      ),
    );
  }
  
  class Yummy extends StatefulWidget {
    const Yummy({super.key});
  
    @override
    State<Yummy> createState() => _YummyState();
  }
  
  class _YummyState extends State<Yummy> {
    ThemeMode themeMode = ThemeMode.light;
    ColorSelection colorSelected = ColorSelection.pink;
  
    void changeThemeMode(bool useLightMode) {
      setState(() {
        themeMode = useLightMode
            ? ThemeMode.light //
            : ThemeMode.dark;
      });
    }
  
    void changeColor(int value) {
      setState(() {
        colorSelected = ColorSelection.values[value];
      });
    }
  
    @override
    Widget build(BuildContext context) {
      const appTitle = 'Yummy';
  
      return MaterialApp(
        title: appTitle,
        //debugShowCheckedModeBanner: false, // Uncomment to remove Debug banner
        themeMode: themeMode,
        theme: ThemeData(
          colorSchemeSeed: colorSelected.color,
          useMaterial3: true,
          brightness: Brightness.light,
        ),
        darkTheme: ThemeData(
          colorSchemeSeed: colorSelected.color,
          useMaterial3: true,
          brightness: Brightness.dark,
        ),
        home: Home(
          appTitle: appTitle,
          changeTheme: changeThemeMode,
          changeColor: changeColor,
          colorSelected: colorSelected,
        ),
      );
    }
  }
  