import 'package:flutter/material.dart';

import 'app.dart';
import 'core/config/app_config.dart';
import 'core/di/injection_container.dart' as di;

/// Default entry point (uses dart-define ENV or defaults to dev).
///
/// Run with: flutter run
/// Or specify env: flutter run --dart-define=ENV=prod
void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  // Initialize configuration from dart-define (defaults to dev)
  AppConfig.initialize();

  await di.init();
  runApp(const AgendaApp());
}
