
The time we have waited so far is finally here, in this part we will finally be calling the methods in our UI and you’ll see all the code up until know we wrote in action.
MaterialApp(
debugShowCheckedModeBanner: false,
title: "Instagram Clone",
darkTheme: ThemeData.dark(),
onGenerateRoute: OnGenerateRoute.route,
initialRoute: "/",
routes: {
"/": (context) {
return MainScreen();
}
},
),
Bloc Builder:
The Bloc Builder is used when we want to draw a widget based on what is the current state.