Preview:
void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp(
    options: DefaultFirebaseOptions.currentPlatform,
  );
  //.then(
  //   (value) {
  //     Get.put(HomeController());
  //   },
  // ); get.put rucno radimo kad u samom kontroleru imamo lazy.put zato sto lazy.put-u treba neki triger da bi se pokrenulo.
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      initialBinding: HomeBinding(), // ako ovdje stavimo inicijalizaciju homebinding-a onda ce se inicijalizovati u toku same aplikacije, tacnije nakon rendera aplikacije
      debugShowCheckedModeBanner: false,
      title: "Application",
      initialRoute: AppPages.INITIAL,
      getPages: AppPages.routes,
    );
  }
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter