import 'package:flutter/material.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; import 'data/repository.dart'; import 'pages/landing_page.dart'; import 'theme/lawheatmap_theme.dart'; void main() { runApp(const LawHeatmapApp()); } class LawHeatmapApp extends StatelessWidget { const LawHeatmapApp({super.key}); @override Widget build(BuildContext context) { // Phase 0: in-memory fixtures only. Swap to a HubRepository // (gRPC against `chain serve`) without changing the UI. const EvaluationRepository repository = MockRepository(); return MaterialApp( title: 'F∆I Law-Heatmap', debugShowCheckedModeBanner: false, theme: LawHeatmapTheme.light(), darkTheme: LawHeatmapTheme.dark(), themeMode: ThemeMode.dark, localizationsDelegates: const [ GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, GlobalCupertinoLocalizations.delegate, ], supportedLocales: const [Locale('de'), Locale('en')], home: const LandingPage(repository: repository), ); } }