import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'services/authentication_manager.dart';
import 'views/content_view.dart';

void main() {
  runApp(const BrandManagerApp());
}

class BrandManagerApp extends StatelessWidget {
  const BrandManagerApp({super.key});

  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider(
      create: (_) => AuthenticationManager(),
      child: MaterialApp(
        title: 'BrandManager',
        debugShowCheckedModeBanner: false,
        theme: ThemeData(
          colorScheme: ColorScheme.fromSeed(
            seedColor: const Color(0xFFa1181d),
            brightness: Brightness.light,
          ),
          useMaterial3: true,
        ),
        darkTheme: ThemeData(
          colorScheme: ColorScheme.fromSeed(
            seedColor: const Color(0xFFa1181d),
            brightness: Brightness.dark,
          ),
          useMaterial3: true,
        ),
        home: const ContentView(),
      ),
    );
  }
}
