import 'package:flutter/widgets.dart'; import 'bootstrap.dart'; import 'i18n/strings.g.dart'; void main() { WidgetsFlutterBinding.ensureInitialized(); // Start from the device language, then let an explicit in-app choice win — // it's the only reliable way to reach languages the OS picker doesn't offer // (e.g. Asturian). The saved choice is restored inside [Bootstrap], after DI. LocaleSettings.useDeviceLocaleSync(); // Paint immediately: [Bootstrap] shows a splash and runs the heavy init off // the first frame, so the app window appears at once instead of after DI. runApp(TranslationProvider(child: const Bootstrap())); }