import 'dart:io'; import 'package:fikoyt_hmi_pano/routes.dart'; import 'package:fikoyt_ui/core/http_overrides.dart'; import 'package:fikoyt_ui/fikoyt_ui.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; void main() async { HttpOverrides.global = HttpSSlIptalUzerineYaz(); // ignore: unused_local_variable // await FikoYTCoreService.init( settings: FikoYTServiceSettings( appSettings: FikoYTAppSettings( uygulamaIsmi: "FikoYT Uyar", routes: routes, title: "FikoYT HMI Screen", firstRouteUrl: "/fikoyt-login", ), systemUiMode: SystemUiMode.immersiveSticky, systemUiOverlay: SystemUiOverlay.values, fikoytWebSocketUrl: "https://fikoyt.com:9000", fikoytServerIstekOnEk: "/fapiv1/fikoyt.com.", connectWebSocket: true, socketMiddleWare: (Socket socket) { socket.onConnect( (data) async => FikoYTCoreService.ioEmit( "FikoYT.uyar.devices.connected", { "deviceUuid": await FikoYTCoreService.getDeviceID(), if (!kIsWeb) if (Platform.isAndroid) "type": "Android", if (!kIsWeb) if (Platform.isWindows) "type": "PC", "others": await FikoYTCoreService.getDeviceInfo(), "user": null, }, ), ); }, ), ); // WidgetsFlutterBinding.ensureInitialized(); await FikoYTCoreService.uygulamaCalistir(); }