content: import 'package:easy_localization/easy_localization.dart';
  import 'package:flutter/material.dart';
  import 'package:provider/provider.dart';
  import 'package:scrawler/src/helpers/constants.dart';
  import 'package:scrawler/src/helpers/theme.dart';
  import 'package:scrawler/src/helpers/theme_notifier.dart';
  import 'package:scrawler/src/screens/signin.dart';
  
  void main() async {
    WidgetsFlutterBinding.ensureInitialized();
    await EasyLocalization.ensureInitialized();
    runApp(
      EasyLocalization(
        supportedLocales: const [
          Locale('en'),
        ],
        path: 'assets/translations',
        fallbackLocale: const Locale('en'),
        child: ChangeNotifierProvider(
            create: (_) => ThemeNotifier(), child: MyApp()),
      ),
    );
  }
  
  class MyApp extends StatefulWidget {
    const MyApp({super.key});
  
    @override
    State<MyApp> createState() => _MyAppState();
  }
  
  class _MyAppState extends State<MyApp> {
    @override
    void initState() {
      super.initState();
    }
  
    @override
    Widget build(BuildContext context) {
      return Consumer<ThemeNotifier>(
        builder: (context, themeNotifier, child) {
          return MaterialApp(
            title: kAppName,
            localizationsDelegates: context.localizationDelegates,
            supportedLocales: context.supportedLocales,
            locale: context.locale,
            debugShowCheckedModeBanner: false,
            theme: theme(context, kPrimaryColor),
            darkTheme: themeDark(context, kPrimaryColor),
            home: SignIn(),
          );
        },
      );
    }
  }
  