Preserving Initial Route when Using runApp() Multiple in Flutter
I'm facing an issue when utilizing runApp() twice for initialization in a Flutter app. Here's a simplified scenario of the problem: void main() async { runApp(const SplashApp()); await configuration(); runApp(const ProviderScope(child: MainApp())); } class SplashApp extends StatelessWidget { const SplashApp({super.key});…