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/services.dart'; void main() async { HttpOverrides.global = HttpSSlIptalUzerineYaz(); // ignore: unused_local_variable // await FikoYTCoreService.init( settings: FikoYTServiceSettings( appSettings: FikoYTAppSettings( routes: routes, title: "FikoYT HMI Screen", ), systemUiMode: SystemUiMode.immersiveSticky, systemUiOverlay: SystemUiOverlay.values, fikoytWebSocketUrl: "https://fikoyt.com:8000/uyar-dokum.merkez", connectWebScoket: true, socketMiddleWare: (Socket socket) { socket.onConnect( (data) async => socket.emit( "FikoYT.uyar.socket.connected", { "uuid": await FikoYTCoreService.getDeviceID(), if (Platform.isAndroid) "type": "Android", if (Platform.isWindows) "type": "PC", "others": await FikoYTCoreService.getDeviceInfo(), "user": null, }, ), ); }, ), ); // WidgetsFlutterBinding.ensureInitialized(); await FikoYTCoreService.uygulamaCalistir(); }