Cannot use this MethodChannel before the binary messenger has been initialized. This happens when you invoke platform methods before the WidgetsFlutterBinding has been initialized. You can fix this by either calling WidgetsFlutterBinding.ensureInitialized() before this or by passing a custom BinaryMessenger instance to MethodChannel().)
void main() {
WidgetsFlutterBinding.ensureInitialized(); // 이 코드를 추가한다.
final _channel = Get.put(MethodChannelGetXController(), permanent: true);
_channel.methodChannelInit();
runApp(const MyApp());
}