import 'dart:io'; import 'package:fikoyt_akcali_v1/apps/finans/core/services/finans.servis.dart'; import 'package:fikoyt_akcali_v1/routes.dart'; import 'package:fikoyt_ui/core/http_overrides.dart'; import 'package:fikoyt_ui/fikoyt_ui.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart'; // import 'package:get/get.dart'; /// Main metodu, uygulaman n ba lang c metodudur. /// /// Bu metod, FikoYTCoreService i ba lat r ve uygulama ayarlar n /// tan mlamas na yard mc olur. Ayarlar, FikoYTServiceSettings /// sinifinda tan mlamaktad r. /// /// Bu metod, FikoYTCoreService i ba lat r, ayarlay c ve /// uygulamay ba lat r. /// /// Bu metod, flutter in giri noktas olarak kullan lmaktad r. /// Uygulaman n ba lang c i in bu metodun kullan lmas gerekir. void main() async { HttpOverrides.global = HttpSSlIptalUzerineYaz(); WidgetsFlutterBinding.ensureInitialized(); // ignore: unused_local_variabl FikoYTCoreService.servisler.setServis(Get.put(FinansServis())); String ilkRota = "/giris"; await FikoYTCoreService.init( settings: FikoYTServiceSettings( appSettings: FikoYTAppSettings(routes: routes, title: "FikoYT Akçalı", firstRouteUrl: ilkRota), deviceOrientation: [DeviceOrientation.portraitUp], ), ); // 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(); }