i have a problem, app launches on chrome. But on android device stacks and says “Launching libmain.dart on sdk gphone64 x86 64 in debug mode…”
I read almost every question on stack over flow, could not find any solution.
Wiped Simulator cache
re created build.gradle etc.
Here is my Main.dart
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: const HomeScreen(),
theme: lightMode,
);
}
}