import 'package:fikoyt_mesaici/apps/mesaici/base_page_mesaici_view.dart'; import 'package:fikoyt_mesaici/apps/mesaici/model/calisma_kayit/calisma_kayit.dart'; import 'package:fikoyt_mesaici/apps/mesaici/widgets/aktif_kart/alt_butonlar.dart'; import 'package:fikoyt_mesaici/apps/mesaici/widgets/aktif_kart/giris_cikis_butonlari.dart'; import 'package:fikoyt_mesaici/apps/mesaici/widgets/aktif_kart/gunluk_izinli.dart'; import 'package:fikoyt_mesaici/apps/mesaici/widgets/aktif_kart/brut_maas_tablosu.dart'; import 'package:fikoyt_mesaici/apps/mesaici/widgets/aktif_kart/raporlu.dart'; import 'package:fikoyt_mesaici/apps/mesaici/widgets/aktif_kart/saat_tablosu/saat_tablosu.dart'; import 'package:fikoyt_mesaici/apps/mesaici/widgets/aktif_kart/sensorler.dart'; import 'package:fikoyt_mesaici/apps/mesaici/widgets/aktif_kart/vardiyalar_dialog.dart'; import 'package:fikoyt_mesaici/apps/mesaici/widgets/aktif_kart/yillik_izinli.dart'; import 'package:fikoyt_mesaici/core/Extensions/fiko_tarih.dart'; import 'package:fikoyt_mesaici/core/interface/fiko_dialog_ayarlari.dart'; import 'package:fikoyt_ui/fikoyt_ui.dart'; import 'package:fikoyt_ui/ui/themes/table_theme.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_animate/flutter_animate.dart'; import 'package:get/get.dart'; import '../../../../core/fikoyt.service.dart'; // ignore: must_be_immutable class AktifKart extends StatelessWidget { AktifKart({super.key, this.kayit}); Rx? kayit = CalismaKayit().obs; BasePageMesaiciLogic basePageMesaiciLogic = Get.put(BasePageMesaiciLogic()); // final FikoYTMesaiciService FikoYTService.servisMesaici = Get.put(FikoYTMesaiciService()); final FikoYTService servisFikoYT = FikoYTService(); @override Widget build(BuildContext context) { return Column( children: [ Obx( () => AnimatedCrossFade( crossFadeState: kayit?.value?.tarih == null ? CrossFadeState.showFirst : CrossFadeState.showSecond, duration: const Duration(milliseconds: 250), firstChild: Container( width: double.infinity, padding: const EdgeInsets.only(bottom: 40, top: 40, left: 5, right: 5), decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), color: Colors.transparent, border: Border.all(color: Colors.grey.shade400), boxShadow: [ BoxShadow( color: Colors.teal.withOpacity(0.15), spreadRadius: -15.0, blurRadius: 12.0, ), const BoxShadow( color: Colors.transparent, spreadRadius: -5.0, blurRadius: 12.0, ), ], ), child: Column( children: [ const Row( mainAxisAlignment: MainAxisAlignment.center, children: [ Icon(Icons.add, size: 64, color: Colors.red), ], ), FikoYTButton( text: "Aktif Kayıt Yok", tema: FikoYTButtonTheme( textColor: Colors.yellow, textStrokeColor: Colors.deepOrangeAccent, fontSize: 20, ), ), Wrap( alignment: WrapAlignment.center, crossAxisAlignment: WrapCrossAlignment.center, children: [ FikoYTButton( text: "Hemen Ekleyin", tema: FikoYTButtonTheme( textColor: Colors.black38, textStrokeColor: Colors.transparent, fontSize: 16, radius: 0, edgePadding: EdgeInsets.zero, ), ), Align( alignment: Alignment.center, child: TextButton( // icon: const Text("💡"), child: const Text( "💡 Kart Ekle", style: TextStyle( color: Colors.blue, fontWeight: FontWeight.bold, fontSize: 14, ), ), onPressed: () async { RxBool gunAyarlariAktar = true.obs; kayit?.value?.ekSatirlar?.value = false; // RxBool ayAyarlariAktar = false.obs; kayit?.value?.tarih = await FikoYTService.tarihSec( context, varsayilanTarih: kayit?.value?.tarih ?? DateTime.now(), ayarlar: FikoDialogAyarlari( baslik: "Tarih Seçiniz", baslikSimge: "🕙", icerik: [ Obx( () => Row( children: [ const Text("🌞 Günlük Ayarları Aktar"), const Spacer(), SizedBox( height: 25, child: FittedBox( fit: BoxFit.fill, child: Switch( value: gunAyarlariAktar.value, onChanged: (value) { gunAyarlariAktar.value = value; gunAyarlariAktar.refresh(); }, ), ), ), ], ), ), ], // altButonlar: [ // const Spacer(), // TextButton( // onPressed: () { // Navigator.pop(context, kayit?.value?.tarih); // }, // child: const Text( // "Tamam", // style: TextStyle(color: Colors.green, fontWeight: FontWeight.bold), // ), // ), // ], ), ); if (kayit?.value?.tarih != null) kayit?.value?.kartEkle(gunAyarlariniAktar: gunAyarlariAktar.value, kartTarih: kayit?.value?.tarih); kayit?.refresh(); }, ), ), ], ), ], ), ), secondChild: Container( margin: const EdgeInsets.all(5.0), decoration: BoxDecoration( color: Theme.of(context).extension()?.cardBackgroundColor, //Colors.white, borderRadius: const BorderRadius.all( Radius.circular(5), ), boxShadow: [ BoxShadow( color: Theme.of(context).extension()!.shadowColor!, offset: const Offset(0, 0), spreadRadius: 0, blurRadius: 5.0, blurStyle: BlurStyle.outer, ), ], border: Border.all( color: Theme.of(context).extension()!.cardBackgroundColor!.withAlpha(255), ), ), child: Column( children: [ /** */ Row( children: [ // const Text( // "📅", // style: TextStyle(fontSize: 16), // ), SizedBox( width: 33, child: MaterialButton( elevation: 0, minWidth: 0, shape: const CircleBorder( // borderRadius: BorderRadius.all(Radius.circular(5)), side: BorderSide.none, ), padding: const EdgeInsets.all(0), child: const Text("📅"), // color: Colors.white, onPressed: () { // if (kDebugMode) { // Scaffold.of(context).openEndDrawer(); if (kDebugMode) { print('clicked'); } // } }, ), ), AnimatedCrossFade( firstChild: const SizedBox.shrink(), secondChild: const Text('🚩'), crossFadeState: kayit?.value?.resmiTatil == true ? CrossFadeState.showSecond : CrossFadeState.showFirst, duration: const Duration(milliseconds: 500), ), Expanded( child: Obx( () => FikoYTButton( text: Row( crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, children: [ Expanded( child: Text( "${kayit?.value?.tarih != null ? kayit?.value?.tarih?.formatla('dd MMMM yyyy EEEE') : 'Çalışma Gününü Seçiniz'}", textAlign: TextAlign.center, style: TextStyle( fontSize: 14, color: Theme.of(context).extension()?.titleTextColor, ), ), ), ], ), tema: FikoYTButtonTheme( fontSize: 13, // edgePadding: const EdgeInsets.symmetric(vertical: 2.0), textColor: Colors.black, textStrokeColor: Colors.transparent, // radius: 0, backgroundColor: Colors.transparent, ), onPressed: () async { RxBool gunAyarlariAktar = true.obs; // RxBool ayAyarlariAktar = false.obs; kayit?.value?.tarih = await FikoYTService.tarihSec( context, varsayilanTarih: kayit?.value?.tarih, ayarlar: FikoDialogAyarlari( baslik: "Tarih Seçiniz", baslikSimge: "🕙", icerik: [ Obx( () => Row( children: [ const Text("🌞 Günlük Ayarları Aktar"), const Spacer(), SizedBox( height: 25, child: FittedBox( fit: BoxFit.fill, child: Switch( value: gunAyarlariAktar.value, onChanged: (value) { gunAyarlariAktar.value = value; gunAyarlariAktar.refresh(); }, ), ), ), ], ), ), ], // altButonlar: [ // const Spacer(), // TextButton( // onPressed: () { // Navigator.pop(context, kayit?.value?.tarih); // }, // child: const Text( // "Tamam", // style: TextStyle(color: Colors.green, fontWeight: FontWeight.bold), // ), // ), // ], ), ); if (kayit?.value?.tarih != null) kayit?.value?.kartEkle(gunAyarlariniAktar: gunAyarlariAktar.value, kartTarih: kayit?.value?.tarih); kayit?.refresh(); }, ), ), ), SizedBox( width: 33, child: MaterialButton( elevation: 0, minWidth: 0, shape: const CircleBorder( // borderRadius: BorderRadius.all(Radius.circular(5)), side: BorderSide.none, ), padding: const EdgeInsets.all(0), child: const Text("🗑️"), // color: Colors.white, onPressed: () { kayit?.value?.sifirla(); kayit?.refresh(); }, onLongPress: () { kayit?.value?.sifirla(); kayit?.refresh(); }, ), ), ], ), const Divider( height: 2, ), Row( crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, children: [ FikoYTButton( text: "🌀 ${kayit?.value?.aktifVardiya?.ismi ?? 'İsimsiz Vardiya'}", tema: FikoYTButtonTheme( fontSize: Theme.of(context).textTheme.displaySmall?.fontSize ?? 10, textAlign: TextAlign.start, edgePadding: const EdgeInsets.symmetric(vertical: 2.0), textStrokeWidth: 0, textColor: Theme.of(context).textTheme.displaySmall?.color ?? Colors.black87, textStrokeColor: Colors.transparent, ), onPressed: () { FikoYTService.dialogGoster( context, VardiyalarDialog(kayit: kayit), FikoDialogAyarlari( baslik: "Vardiya Seçimi", baslikSimge: "🌀", altButonlar: [ const Spacer(), TextButton( onPressed: () { Navigator.pop(context); }, child: const Text( "Kapat", style: TextStyle(color: Colors.green, fontWeight: FontWeight.bold), ), ), ], ), ); }, ), ], ), Padding( padding: const EdgeInsets.all(5), child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ Expanded( child: Obx( () => TextButton( onPressed: () { kayit?.value?.gunTuru = GunTuru.CALISMA_GUNU; kayit?.refresh(); }, style: TextButton.styleFrom( alignment: Alignment.center, fixedSize: const Size.fromHeight(20), backgroundColor: kayit?.value?.gunTuru == GunTuru.CALISMA_GUNU ? Colors.teal : Colors.grey.shade200, shape: const BeveledRectangleBorder(borderRadius: BorderRadius.zero), foregroundColor: kayit?.value?.gunTuru == GunTuru.CALISMA_GUNU ? Colors.white : Colors.teal, textStyle: const TextStyle( fontSize: 10, fontWeight: FontWeight.bold, ), ), child: const Text('Çalışma Günü'), ), ), ), Expanded( child: Obx( () => TextButton( onPressed: () { kayit?.value?.gunTuru = GunTuru.DINLENME_GUNU; kayit?.refresh(); }, style: TextButton.styleFrom( alignment: Alignment.center, fixedSize: const Size.fromHeight(20), backgroundColor: kayit?.value?.gunTuru == GunTuru.DINLENME_GUNU ? Colors.teal : Colors.grey.shade200, shape: const BeveledRectangleBorder(borderRadius: BorderRadius.zero), foregroundColor: kayit?.value?.gunTuru == GunTuru.DINLENME_GUNU ? Colors.white : Colors.teal, textStyle: const TextStyle( fontSize: 10, fontWeight: FontWeight.bold, ), ), child: const Text('Dinlenme Günü'), ), ), ), Expanded( child: Obx( () => TextButton( onPressed: () { kayit?.value?.gunTuru = GunTuru.HAFTA_TATILI; kayit?.refresh(); }, style: TextButton.styleFrom( alignment: Alignment.center, fixedSize: const Size.fromHeight(20), backgroundColor: kayit?.value?.gunTuru == GunTuru.HAFTA_TATILI ? Colors.teal : Colors.grey.shade200, shape: const BeveledRectangleBorder(borderRadius: BorderRadius.zero), foregroundColor: kayit?.value?.gunTuru == GunTuru.HAFTA_TATILI ? Colors.white : Colors.teal, textStyle: const TextStyle( fontSize: 10, fontWeight: FontWeight.bold, ), ), child: const Text('Hafta Tatili'), ), ), ), ], ), ), /** NOT: Orta Bölüm */ Padding( padding: const EdgeInsets.all(5), child: Row( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.center, children: [ /** NOT: Sol Göstergeler */ Sensorlar(kayit: kayit), /** NOT: Orta Veri Girişleri */ Expanded( child: Padding( padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 0), child: Column( children: [ Obx( () => Visibility( visible: kayit?.value?.raporlu != true && kayit?.value?.gunlukIzinli != true && kayit?.value?.yillikIzinli != true, child: SaatTablosu(kayit: kayit), ), ), /** buuuu */ Obx( () => Visibility( visible: kayit?.value?.raporlu == true, child: Raporlu(kayit: kayit), ), ), /** */ Obx( () => Visibility( visible: kayit?.value?.gunlukIzinli == true, child: GunlukIzinli(kayit: kayit), ), ), /** */ Obx( () => Visibility( visible: kayit?.value?.yillikIzinli == true, child: YillikIzinli(kayit: kayit), ), ), /** */ const SizedBox( height: 5, ), /** Maaş Tablosu */ BrutMaasTablosu(kayit: kayit), /** */ const SizedBox( height: 5, ), GirisCikisButonlari(kayit: kayit), /** */ /** */ // Visibility( // visible: false, // child: Column( // children: [ // KumultatifSatir(kayit: kayit), // Row( // children: [ // FikoYTButton1( // text: "🗃️", // onPressed: () async { // kayit?.value?.ekOdemeler = kayit?.value?.bugununAyari.ekOdemeler; // kayit?.value?.kesintiler = kayit?.value?.bugununAyari.kesintiler; // kayit?.value?.vergiler = kayit?.value?.bugununAyari.vergiler; // kayit?.refresh(); // }, // ), // Expanded( // child: Obx( // () => FikoYTButton1( // text: "Vergiler / Kesintiler / Primler ${kayit?.value?.ekSatirlar?.value ?? false ? '🔺' : '🔻'}", // textSize: 12, // textAlign: TextAlign.center, // edgePadding: const EdgeInsets.symmetric(vertical: 2.0), // textStrokeWidth: 0, // textColor: Colors.redAccent, // textStrokeColor: Colors.transparent, // onPressed: () { // kayit?.value?.ekSatirlar?.toggle(); // kayit?.value?.ekSatirlar?.refresh(); // }, // ), // ), // ), // FikoYTButton1( // text: "🗑️", // onPressed: () async { // FikoYTService.dialogGoster( // context, // const Text("Aktif Karttaki Vergiler/Kesintiler/Primler Silinecek.Bu İşlem Geri Alınamaz. Onaylıyormusunuz?"), // FikoDialogAyarlari(baslik: "Onay", baslikSimge: "❔", altButonlar: [ // FikoYTButton1( // textColor: Colors.red, // textStrokeColor: Colors.transparent, // text: "✔️ Onaylıyorum", // onPressed: () { // kayit?.value?.ekOdemeler = []; // kayit?.value?.kesintiler = []; // kayit?.value?.vergiler = []; // kayit?.refresh(); // Navigator.pop( // context, // ); // }, // ), // const Spacer(), // FikoYTButton1( // textColor: Colors.green, // textStrokeColor: Colors.transparent, // text: "❌ Onaylamıyorum", // onPressed: (() { // FikoYTService.servisMesaici.ayarlarModel!.refresh(); // Navigator.pop( // context, // ); // }), // ), // ])); // }, // onLongPress: () { // kayit?.value?.ekOdemeler = []; // kayit?.value?.kesintiler = []; // kayit?.value?.vergiler = []; // kayit?.refresh(); // }, // ), // ], // ), // Visibility( // visible: kayit?.value?.ekSatirlar?.value ?? false, // child: Column( // children: [ // /*** // * // */ // Container( // alignment: Alignment.centerLeft, // padding: const EdgeInsets.all(1), // margin: const EdgeInsets.symmetric(vertical: 5), // decoration: BoxDecoration( // border: Border.all(color: Colors.grey.shade300), // borderRadius: BorderRadius.circular(15), // color: Colors.grey.shade100, // ), // child: SizedBox( // height: 18.0, // child: ShaderMask( // shaderCallback: (Rect rect) { // return const LinearGradient( // begin: Alignment.centerLeft, // end: Alignment.centerRight, // colors: [Colors.purple, Colors.transparent, Colors.transparent, Colors.purple], // stops: [0.0, 0.1, 0.9, 1.0], // 10% purple, 80% transparent, 10% purple // ).createShader(rect); // }, // blendMode: BlendMode.dstOut, // child: SingleChildScrollView( // scrollDirection: Axis.horizontal, // physics: const BouncingScrollPhysics(), // child: Row( // children: [ // FikoYTButton1( // text: "🧬 Panoya Kopyala", // textSize: 10, // textAlign: TextAlign.start, // edgePadding: const EdgeInsets.symmetric(vertical: 2.0, horizontal: 5), // textStrokeWidth: 0, // textColor: Colors.black87, // textStrokeColor: Colors.transparent, // onPressed: () { // String data = json.encode({ // "ekOdemeler": kayit?.value?.ekOdemeler, // "kesintiler": kayit?.value?.kesintiler, // "vergiler": kayit?.value?.vergiler, // }); // Clipboard.setData(ClipboardData(text: data)); // SnackBar snck = const SnackBar( // // behavior: SnackBarBehavior.floating, // // margin: EdgeInsets.symmetric(vertical: 50.0, horizontal: 30), dismissDirection: DismissDirection.down, showCloseIcon: true, // content: Text('Liste Panoya Kopyalandı'), // duration: Duration(seconds: 2), // SnackBar'ın ekranda kalma süresi // ); // ScaffoldMessenger.of(context).showSnackBar(snck); // }, // ), // FikoYTButton1( // text: "📋 Panodan Çek", // textSize: 10, // textAlign: TextAlign.start, // edgePadding: const EdgeInsets.symmetric(vertical: 2.0, horizontal: 5), // textStrokeWidth: 0, // textColor: Colors.black87, // textStrokeColor: Colors.transparent, // onPressed: () async { // try { // List lstEkOdm = []; // List lstKesinti = []; // List lstVrg = []; // dynamic panoData = json.decode((await Clipboard.getData(Clipboard.kTextPlain))?.text ?? "{}"); // for (var i = 0; i < panoData["ekOdemeler"]?.length; i++) { // lstEkOdm.add(EkOdeme.fromJson(panoData["ekOdemeler"]?[i])); // } // for (var i = 0; i < panoData["kesintiler"]?.length; i++) { // lstKesinti.add(Kesinti.fromJson(panoData["kesintiler"]?[i])); // } // for (var i = 0; i < panoData["vergiler"]?.length; i++) { // lstVrg.add(Vergi.fromJson(panoData["vergiler"]?[i])); // } // kayit?.value?.ekOdemeler = lstEkOdm; // kayit?.value?.kesintiler = lstKesinti; // kayit?.value?.vergiler = lstVrg; // FikoYTService.servisMesaici.aktifCalisma?.refresh(); // ScaffoldMessenger.of(context).showSnackBar( // const SnackBar( // content: Text('Liste Panodan Kopyalandı'), // duration: Duration(seconds: 2), // SnackBar'ın ekranda kalma süresi // ), // ); // } catch (e) { // ScaffoldMessenger.of(context).showSnackBar( // SnackBar( // content: const Text( // 'Veri Hatası', // style: TextStyle(color: Colors.white), // ), // backgroundColor: Colors.red, // action: SnackBarAction( // label: 'Tamam', // onPressed: () { // // Action butonuna tıklanınca yapılacak işlemler // }, // ), // duration: const Duration(seconds: 2), // SnackBar'ın ekranda kalma süresi // ), // ); // } // }, // ), // FikoYTButton1( // text: "💾 Dosyaya Aktar", // textSize: 10, // textAlign: TextAlign.start, // edgePadding: const EdgeInsets.symmetric(vertical: 2.0, horizontal: 5), // textStrokeWidth: 0, // textColor: Colors.black87, // textStrokeColor: Colors.transparent, // onPressed: () async { // try { // String data = json.encode({ // "ekOdemeler": kayit?.value?.ekOdemeler, // "kesintiler": kayit?.value?.kesintiler, // "vergiler": kayit?.value?.vergiler, // }); // // JSON verisini oluştur // String jsonString = data; // // Dosya kaydetme yerini sor // String? outputPath = await FilePicker.platform.saveFile( // dialogTitle: 'Kayıt dosyası nereye kaydedilsin?', // fileName: 'VergilerKesintilerPrimler.json', // bytes: Uint8List.fromList(utf8.encode(data)), // ); // if (outputPath != null) { // if (Platform.isAndroid == false && Platform.isIOS == false) { // // Dosyayı yaz // File file = File(outputPath); // await file.writeAsString(jsonString); // } // SnackBar snck = const SnackBar( // content: Text('Dosya Kaydedildi'), // duration: Duration(seconds: 2), // SnackBar'ın ekranda kalma süresi // ); // ScaffoldMessenger.of(context).showSnackBar(snck); // } else { // SnackBar snck = const SnackBar( // content: Text('Dosya Kaydedilmesi İptal Edildi.'), // backgroundColor: Colors.red, // duration: Duration(seconds: 2), // SnackBar'ın ekranda kalma süresi // ); // ScaffoldMessenger.of(context).showSnackBar(snck); // } // } catch (e) { // SnackBar snck = const SnackBar( // content: Text('Bir Hata Oluştu'), // backgroundColor: Colors.red, // duration: Duration(seconds: 2), // SnackBar'ın ekranda kalma süresi // ); // ScaffoldMessenger.of(context).showSnackBar(snck); // } // }, // ), // FikoYTButton1( // text: "📂 Dosyadan Çek", // textSize: 10, // textAlign: TextAlign.start, // edgePadding: const EdgeInsets.symmetric(vertical: 2.0, horizontal: 5), // textStrokeWidth: 0, // textColor: Colors.black87, // textStrokeColor: Colors.transparent, // onPressed: () async { // try { // // Dosya seçme // FilePickerResult? result = await FilePicker.platform.pickFiles( // dialogTitle: 'Kayıt dosyasını seçin', // type: FileType.custom, // allowedExtensions: ['json'], // Sadece JSON dosyalarını seçtir // ); // if (result != null && result.files.single.path != null) { // // Dosya yolunu al // String filePath = result.files.single.path!; // // Dosyanın içeriğini oku // File file = File(filePath); // String fileContent = await file.readAsString(); // // JSON verisini çözümle // List lstEkOdm = []; // List lstKesinti = []; // List lstVrg = []; // dynamic panoData = json.decode(fileContent); // for (var i = 0; i < panoData["ekOdemeler"]?.length; i++) { // lstEkOdm.add(EkOdeme.fromJson(panoData["ekOdemeler"]?[i])); // } // for (var i = 0; i < panoData["kesintiler"]?.length; i++) { // lstKesinti.add(Kesinti.fromJson(panoData["kesintiler"]?[i])); // } // for (var i = 0; i < panoData["vergiler"]?.length; i++) { // lstVrg.add(Vergi.fromJson(panoData["vergiler"]?[i])); // } // kayit?.value?.ekOdemeler = lstEkOdm; // kayit?.value?.kesintiler = lstKesinti; // kayit?.value?.vergiler = lstVrg; // FikoYTService.servisMesaici.aktifCalisma?.refresh(); // } else {} // } catch (e) { // SnackBar snck = const SnackBar( // content: Text('Bir Hata Oluştu'), // backgroundColor: Colors.red, // duration: Duration(seconds: 2), // SnackBar'ın ekranda kalma süresi // ); // ScaffoldMessenger.of(context).showSnackBar(snck); // } // }, // ), // // FikoYTButton1( // // text: "📡 İnternetten Çek", // // textSize: 10, // // textAlign: TextAlign.start, // // edgePadding: const EdgeInsets.symmetric(vertical: 2.0, horizontal: 5), // // textStrokeWidth: 0, // // textColor: Colors.black87, // // textStrokeColor: Colors.transparent, // // onPressed: () {}, // // ), // FikoYTButton1( // text: "🗑️ Tümünü Sil", // textSize: 10, // textAlign: TextAlign.start, // edgePadding: const EdgeInsets.symmetric(vertical: 2.0, horizontal: 5), // textStrokeWidth: 0, // textColor: Colors.black87, // textStrokeColor: Colors.transparent, // onPressed: () async { // FikoYTService.dialogGoster( // context, // const Text("Listedeki Tüm Kayıtlar Silinecek.Bu İşlem Geri Alınamaz. Onaylıyormusunuz?"), // FikoDialogAyarlari(baslik: "Onay", baslikSimge: "❔", altButonlar: [ // FikoYTButton1( // textColor: Colors.green, // textStrokeColor: Colors.transparent, // text: "✔️ Onaylıyorum", // onPressed: () { // kayit?.value?.vergiler = []; // kayit?.value?.kesintiler = []; // kayit?.value?.ekOdemeler = []; // FikoYTService.servisMesaici.aktifCalisma?.refresh(); // Navigator.pop( // context, // ); // }, // ), // const Spacer(), // FikoYTButton1( // textColor: Colors.red, // textStrokeColor: Colors.transparent, // text: "❌ Onaylamıyorum", // onPressed: (() { // FikoYTService.servisMesaici.aktifCalisma?.refresh(); // Navigator.pop( // context, // ); // }), // ), // ])); // }, // onLongPress: () { // kayit?.value?.vergiler = []; // kayit?.value?.kesintiler = []; // kayit?.value?.ekOdemeler = []; // FikoYTService.servisMesaici.aktifCalisma?.refresh(); // }, // ), // ], // ), // ), // ), // ), // ), // /** // * // */ // const SizedBox( // height: 10, // ), // EkOdemelerWidget(kayit: kayit), // const SizedBox( // height: 5, // ), // /** */ // KesintilerWidget(kayit: kayit), // const SizedBox( // height: 5, // ), // /** */ // VergilerWidget(kayit: kayit), // const SizedBox( // height: 5, // ), // ], // ), // ), // const SizedBox( // height: 5, // ), // /** */ // NetMaasTablosu(kayit: kayit), // Obx( // () => FikoYTButton1(text: "${kayit?.value?.guncelBrutMaas.toParaBirimi()}"), // ), // ], // ), // ), ], ), ), ), /** NOT: Sağ Göstergeler */ Sensorlar(kayit: kayit), ], ), ), /** */ AltButonlar(kayit: kayit), ], ).animate( effects: [ // FadeEffect(duration: 1000.ms), // SaturateEffect(delay: 1000.ms, duration: 500.ms, curve: Curves.easeIn), // BlurEffect( // duration: 600.ms, // begin: const Offset(3, 3), // end: const Offset(0, 0), // ), ShimmerEffect( delay: 1000.ms, duration: 1000.ms, curve: Curves.easeIn, ), ], ), ), ), ), ], ); } }