import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:graphql_flutter/graphql_flutter.dart';
import 'package:injectable/injectable.dart';
import 'package:krow/app.dart';

import 'core/application/di/injectable.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await dotenv.load(fileName: '.env_dev');

  await Firebase.initializeApp();
  await initHiveForFlutter();

  configureDependencies(Environment.dev);

  runApp(const KrowApp());
}
