import 'dart:io'; import 'package:fikoyt_akcali_v1/apps/finans/core/models/finans.model.dart'; 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/widgets.dart'; import 'package:isar/isar.dart'; // import 'package:get/get.dart'; void main() async { HttpOverrides.global = HttpSSlIptalUzerineYaz(); WidgetsFlutterBinding.ensureInitialized(); // ignore: unused_local_variabl FikoYTCoreService.servisler.setServis(Get.put(FinansServis())); Isar? isar = FikoYTCoreService.servisler.getServis()?.isar; String ilkRota = "/giris"; if (((await isar?.users.count()) ?? 0) <= 0) { ilkRota = "/ilk-kurulum"; } await FikoYTCoreService.init( settings: FikoYTServiceSettings( appSettings: FikoYTAppSettings(routes: routes, title: "FikoYT Akçalı", firstRouteUrl: ilkRota), ), ); // 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(); }