title: "GetXController" not found. You need to call?
body: <p>I want to implement <a href="https://chornthorn.github.io/getx-docs/dependency-management/binding" rel="nofollow noreferrer">GetX binding methods</a>, and as result, I got this error:</p>
  <pre><code>════════ Exception caught by widgets library ═══════════════════════════════════
  The following message was thrown building MyApp(dirty):
  &quot;UserController&quot; not found. You need to call &quot;Get.put(UserController())&quot; or &quot;Get.lazyPut(()=&gt;UserController())&quot;
  
  The relevant error-causing widget was
  MyApp
  lib/main.dart:9
  </code></pre>
  <pre><code>main.dart
  
  import 'package:donirajkrv/views/welcome.dart';
  import 'package:flutter/material.dart';
  import 'package:flutter/services.dart';
  import 'package:get/get.dart';
  import './router/index.dart';
  import './bindings/user_binding.dart';
  
  void main() {
    runApp(const MyApp());
  }
  
  class MyApp extends StatelessWidget {
    const MyApp({Key? key}) : super(key: key);
    @override
    Widget build(BuildContext context) {
      return GetMaterialApp(
        initialBinding: UserBinding(),
        home: const Scaffold(
          backgroundColor: Color.fromRGBO(244, 248, 252, 1),
          body: SafeArea(child: WelcomePage()),
        ),
        getPages: [...routeList],
        debugShowCheckedModeBanner: false,
        theme: ThemeData(
          primaryColor: const Color(0XFFFB6394),
          appBarTheme: const AppBarTheme(
            systemOverlayStyle: SystemUiOverlayStyle.dark,
          ),
        ),
      );
    }
  }
  
  </code></pre>
  <p>How main works:</p>
  <pre><code>
  void main() {
    Get.put&lt;UserController&gt;(UserController());
    runApp(const MyApp());
  }
  </code></pre>
  <pre><code>user_binding.dart
  import 'package:get/get.dart';
  import 'package:donirajkrv/controllers/user_controller.dart';
  
  class UserBinding implements Bindings {
    @override
    void dependencies() {
      Get.put(() =&gt; UserController());
    }
  }
  
  </code></pre>
  <p>Routelist:</p>
  <pre><code>import 'package:get/get.dart';
  import '../views/welcome.dart';
  import '../views/login.dart';
  import '../views/register.dart';
  import '../views/home_page.dart';
  import '../middlewares/auth_middleware.dart';
  import '../middlewares/back_to_home_middleware.dart';
  
  // Routes path
  import '../routes/index.dart';
  
  List routeList = [
    GetPage(
        name: '/${Routes.WELCOME_PAGE}',
        page: () =&gt; const WelcomePage(),
        middlewares: [BackToHomeMiddleware()]),
    GetPage(
        name: '/${Routes.LOGIN_PAGE}',
        page: () =&gt; const Login(),
        middlewares: [BackToHomeMiddleware()]),
    GetPage(
        name: '/${Routes.REGISTER_PAGE}',
        page: () =&gt; const Register(),
        middlewares: [BackToHomeMiddleware()]),
    GetPage(
        name: '/${Routes.HOME_PAGE}',
        page: () =&gt; const HomePage(),
        middlewares: [AuthMiddleware()])
  ];
  
  </code></pre>