import 'dart:io'; import 'package:fikoyt_mesaici/apps/mesaici/servisler/fikoyt.mesaici.service.dart'; import 'package:fikoyt_mesaici/routes.dart'; import 'package:fikoyt_ui/core/http_overrides.dart'; import 'package:fikoyt_ui/fikoyt_ui.dart'; import 'package:flutter/widgets.dart'; // import 'package:get/get.dart'; import 'core/fikoyt.service.dart'; void main() async { HttpOverrides.global = HttpSSlIptalUzerineYaz(); FikoYTMesaiciService? mesaiciServis; // ignore: unused_local_variable await FikoYTCoreService.init(settings: FikoYTServiceSettings(appSettings: FikoYTAppSettings(routes: routes, title: "FikoYT Akçalı"), onInitialIntent: (intent) async => await mesaiciServis?.intentMetodCalistir(intent))); // mesaiciServis = FikoYTService.servisMesaici; WidgetsFlutterBinding.ensureInitialized(); await FikoYTService().init(); // await Workmanager().initialize(WorkManagerTaskFunc, // The top level function, aka callbackDispatcher // isInDebugMode: false // If enabled it will post a notification whenever the task is running. Handy for debugging tasks // ); // await initializeNotification(mesaiciServis); // if (Platform.isWindows == false) { // try { // final receivedIntent = await ReceiveIntent.getInitialIntent(); // // mesaiciServis.aktifIntent.value = receivedIntent; // await mesaiciServis.intentMetodCalistir(receivedIntent); // // Validate receivedIntent and warn the user, if it is not correct, // // but keep in mind it could be `null` or "empty"(`receivedIntent.isNull`). // } on PlatformException { // // Handle exception // } // } FikoYTCoreService.uygulamaCalistir(); }