Hi@akhtar,
You need to initialize your route in the main function of your Flutter App. When your App builds it will load the route. You can see the below example.
void main() {
WidgetsFlutterBinding.ensureInitialized();
Firebase.initializeApp();
runApp(MaterialApp(
initialRoute: "home",
routes: {
"home": (context) => HomePage(),
}
)
)
}
To know more about Flutter, join our Flutter Certification today.