import 'package:fikoyt_finans/apps/mesaici/base_page_mesaici_view.dart'; import 'package:fikoyt_finans/apps/mesaici/model/calisma_kayit/calisma_kayit.dart'; import 'package:fikoyt_finans/apps/mesaici/model/model_hareketler.dart'; import 'package:fikoyt_finans/core/Extensions/fiko_tarih.dart'; import 'package:fikoyt_finans/core/fikoyt.service.dart'; import 'package:fikoyt_finans/core/interface/fiko_dialog_ayarlari.dart'; import 'package:fikoyt_finans/core/widgets/fiko_ui/fiko_button/fiko_button.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'alt_butonlar.dart'; import 'brut_maas_tablosu.dart'; import 'gunluk_izinli.dart'; import 'raporlu.dart'; import 'saat_tablosu/saat_tablosu.dart'; import 'sensorler.dart'; import 'vardiyalar_dialog.dart'; import 'yillik_izinli.dart'; // ignore: must_be_immutable class CalismaKarti extends StatelessWidget { CalismaKarti({super.key, required this.kayit, dynamic callState}); Rx? kayit; RxBool kaydediliyor = false.obs; BasePageMesaiciLogic basePageMesaiciLogic = Get.put(BasePageMesaiciLogic()); // final FikoYTMesaiciService FikoYTService.servisMesaici = Get.put(FikoYTMesaiciService()); final FikoYTService servisFikoYT = FikoYTService(); @override Widget build(BuildContext context) { return Obx( () => Column( children: [ Container( width: double.infinity, margin: const EdgeInsets.all(10.0), decoration: const BoxDecoration( color: Colors.white, borderRadius: BorderRadius.all( Radius.circular(5), ), boxShadow: [ BoxShadow(color: Colors.black12, offset: Offset(0, 0), spreadRadius: 1, blurRadius: 0.0, blurStyle: BlurStyle.outer), ]), child: Column( children: [ Row( children: [ 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: () {}, ), ), Obx( () => AnimatedCrossFade( firstChild: const SizedBox.shrink(), secondChild: const Text('🚩'), crossFadeState: kayit?.value?.calismaKarti?.resmiTatil == true ? CrossFadeState.showSecond : CrossFadeState.showFirst, duration: const Duration(milliseconds: 500), ), ), Expanded( child: FikoButton1( text: Row( crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, children: [ Expanded( child: Text( "${kayit?.value?.calismaKarti?.tarih != null ? kayit?.value?.calismaKarti?.tarih?.formatla('dd MMMM yyyy EEEE') : 'Çalışma Gününü Seçiniz'}", textAlign: TextAlign.center, ), ), ], ), textSize: 13, // edgePadding: const EdgeInsets.symmetric(vertical: 2.0), textColor: Colors.black, textStrokeColor: Colors.transparent, // radius: 0, backColor: Colors.transparent, onPressed: () async { RxBool gunAyarlariAktar = true.obs; // RxBool ayAyarlariAktar = false.obs; kayit?.value?.calismaKarti?.tarih = await FikoYTService.tarihSec( context, varsayilanTarih: kayit?.value?.calismaKarti?.tarih, tarihSilinebilsin: false, 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: [], ), ); // if (kayit?.value?.calismaKarti?.tarih != null) kayit?.value?.calismaKarti?.kartEkle(gunAyarlariniAktar: gunAyarlariAktar.value, kartTarih: kayit?.value?.calismaKarti?.tarih); // kayit?.value?.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?.calismaKarti?.sil(); // kayit?.value?.refresh(); }, onLongPress: () { // kayit?.value?.calismaKarti?.sifirla(); // kayit?.value?.refresh(); }, ), ), ], ), const Divider( height: 2, ), Row( crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, children: [ Obx( () => FikoButton1( text: "🌀 ${kayit?.value?.calismaKarti?.aktifVardiya?.ismi ?? 'İsimsiz Vardiya'}", textSize: 10, textAlign: TextAlign.start, edgePadding: const EdgeInsets.symmetric(vertical: 2.0), textStrokeWidth: 0, textColor: 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), ), ), ], ), ); }, ), ), ], ), Obx( () => Padding( padding: const EdgeInsets.all(5), child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ Expanded( child: TextButton( onPressed: () { kayit?.value?.calismaKarti?.gunTuru = GunTuru.CALISMA_GUNU; kayit?.refresh(); }, style: TextButton.styleFrom( alignment: Alignment.center, fixedSize: const Size.fromHeight(20), backgroundColor: kayit?.value?.calismaKarti?.gunTuru == GunTuru.CALISMA_GUNU ? Colors.teal : Colors.grey.shade200, shape: const BeveledRectangleBorder(borderRadius: BorderRadius.zero), foregroundColor: kayit?.value?.calismaKarti?.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: TextButton( onPressed: () { kayit?.value?.calismaKarti?.gunTuru = GunTuru.DINLENME_GUNU; kayit?.refresh(); }, style: TextButton.styleFrom( alignment: Alignment.center, fixedSize: const Size.fromHeight(20), backgroundColor: kayit?.value?.calismaKarti?.gunTuru == GunTuru.DINLENME_GUNU ? Colors.teal : Colors.grey.shade200, shape: const BeveledRectangleBorder(borderRadius: BorderRadius.zero), foregroundColor: kayit?.value?.calismaKarti?.gunTuru == GunTuru.DINLENME_GUNU ? Colors.white : Colors.teal, textStyle: const TextStyle( fontSize: 10, fontWeight: FontWeight.bold, ), ), child: const Text('Dinlenme Günü'), ), ), Expanded( child: TextButton( onPressed: () { kayit?.value?.calismaKarti?.gunTuru = GunTuru.HAFTA_TATILI; kayit?.refresh(); }, style: TextButton.styleFrom( alignment: Alignment.center, fixedSize: const Size.fromHeight(20), backgroundColor: kayit?.value?.calismaKarti?.gunTuru == GunTuru.HAFTA_TATILI ? Colors.teal : Colors.grey.shade200, shape: const BeveledRectangleBorder(borderRadius: BorderRadius.zero), foregroundColor: kayit?.value?.calismaKarti?.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: [ Sensorlar(kayit: kayit), /** */ Expanded( child: Padding( padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 0), child: Column( children: [ Obx( () => Visibility( visible: kayit?.value?.calismaKarti?.raporlu != true && kayit?.value?.calismaKarti?.gunlukIzinli != true && kayit?.value?.calismaKarti?.yillikIzinli != true, child: SaatTablosu(kayit: kayit), ), ), /** buuuu */ Obx( () => Visibility( visible: kayit?.value?.calismaKarti?.raporlu == true, child: Raporlu(kayit: kayit), ), ), /** */ Obx( () => Visibility( visible: kayit?.value?.calismaKarti?.gunlukIzinli == true, child: GunlukIzinli(kayit: kayit), ), ), /** */ Obx( () => Visibility( visible: kayit?.value?.calismaKarti?.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: [ // FikoButton1( // text: "🗃️", // onPressed: () async { // kayit?.value?.calismaKarti?.ekOdemeler = kayit?.value?.calismaKarti?.bugununAyari.ekOdemeler; // kayit?.value?.calismaKarti?.kesintiler = kayit?.value?.calismaKarti?.bugununAyari.kesintiler; // kayit?.value?.calismaKarti?.vergiler = kayit?.value?.calismaKarti?.bugununAyari.vergiler; // kayit?.refresh(); // }, // ), // Expanded( // child: Obx( // () => FikoButton1( // text: "Vergiler / Kesintiler / Primler ${kayit?.value?.calismaKarti?.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?.calismaKarti?.ekSatirlar?.toggle(); // kayit?.value?.calismaKarti?.ekSatirlar?.refresh(); // }, // ), // ), // ), // FikoButton1( // 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: [ // FikoButton1( // textColor: Colors.red, // textStrokeColor: Colors.transparent, // text: "✔️ Onaylıyorum", // onPressed: () { // kayit?.value?.calismaKarti?.ekOdemeler = []; // kayit?.value?.calismaKarti?.kesintiler = []; // kayit?.value?.calismaKarti?.vergiler = []; // kayit?.refresh(); // Navigator.pop( // context, // ); // }, // ), // const Spacer(), // FikoButton1( // textColor: Colors.green, // textStrokeColor: Colors.transparent, // text: "❌ Onaylamıyorum", // onPressed: (() { // FikoYTService.servisMesaici.ayarlarModel!.refresh(); // Navigator.pop( // context, // ); // }), // ), // ])); // }, // onLongPress: () { // kayit?.value?.calismaKarti?.ekOdemeler = []; // kayit?.value?.calismaKarti?.kesintiler = []; // kayit?.value?.calismaKarti?.vergiler = []; // kayit?.refresh(); // }, // ), // ], // ), // Obx( // () => Visibility( // visible: kayit?.value?.calismaKarti?.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: [ // FikoButton1( // 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?.calismaKarti?.ekOdemeler, // "kesintiler": kayit?.value?.calismaKarti?.kesintiler, // "vergiler": kayit?.value?.calismaKarti?.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); // }, // ), // FikoButton1( // 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?.calismaKarti?.ekOdemeler = lstEkOdm; // kayit?.value?.calismaKarti?.kesintiler = lstKesinti; // kayit?.value?.calismaKarti?.vergiler = lstVrg; // kayit?.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 // ), // ); // } // }, // ), // FikoButton1( // 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?.calismaKarti?.ekOdemeler, // "kesintiler": kayit?.value?.calismaKarti?.kesintiler, // "vergiler": kayit?.value?.calismaKarti?.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); // } // }, // ), // FikoButton1( // 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?.calismaKarti?.ekOdemeler = lstEkOdm; // kayit?.value?.calismaKarti?.kesintiler = lstKesinti; // kayit?.value?.calismaKarti?.vergiler = lstVrg; // kayit?.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); // } // }, // ), // // FikoButton1( // // 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: () {}, // // ), // FikoButton1( // 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: [ // FikoButton1( // textColor: Colors.green, // textStrokeColor: Colors.transparent, // text: "✔️ Onaylıyorum", // onPressed: () { // kayit?.value?.calismaKarti?.vergiler = []; // kayit?.value?.calismaKarti?.kesintiler = []; // kayit?.value?.calismaKarti?.ekOdemeler = []; // kayit?.refresh(); // Navigator.pop( // context, // ); // }, // ), // const Spacer(), // FikoButton1( // textColor: Colors.red, // textStrokeColor: Colors.transparent, // text: "❌ Onaylamıyorum", // onPressed: (() { // kayit?.refresh(); // Navigator.pop( // context, // ); // }), // ), // ])); // }, // onLongPress: () { // kayit?.value?.calismaKarti?.vergiler = []; // kayit?.value?.calismaKarti?.kesintiler = []; // kayit?.value?.calismaKarti?.ekOdemeler = []; // kayit?.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, // ), // ], // ), // ), // ), // /** */ // NetMaasTablosu(kayit: kayit), // const SizedBox( // height: 5, // ), // Obx( // () => FikoButton1(text: "${((kayit?.value?.calismaKarti?.guncelBrutMaas ?? 0.0)).toParaBirimi()}"), // ), // ], // ), // ), /** */ Row( children: [ const Spacer(), TextButton( onPressed: () async { if (kaydediliyor.value == true) return; kaydediliyor.value = true; kaydediliyor.refresh(); try { await FikoYTService.servisMesaici.isar?.writeTxn( () async { await Future.delayed(const Duration(milliseconds: 1000)); FikoYTService.servisMesaici.isar?.modelHareketlers.put(kayit!.value!); }, ); kaydediliyor.value = false; kaydediliyor.refresh(); kayit?.refresh(); } catch (e) { // print(e); kaydediliyor.value = false; kaydediliyor.refresh(); } finally { kaydediliyor.value = false; kaydediliyor.refresh(); } }, style: TextButton.styleFrom( alignment: Alignment.center, fixedSize: const Size.fromHeight(16), backgroundColor: Colors.green.shade400, shape: const RoundedRectangleBorder( borderRadius: BorderRadius.horizontal( left: Radius.circular(50), right: Radius.circular(50), ), ), textStyle: const TextStyle( fontSize: 10, color: Colors.white, ), ), child: Padding( padding: const EdgeInsets.symmetric(horizontal: 10), child: Obx( () => AnimatedCrossFade( firstChild: const Text( "💾 Kaydet", style: TextStyle( color: Colors.white, ), ), secondChild: Row( crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, children: [ Container( width: 16, height: 16, padding: const EdgeInsets.all(2.0), child: const CircularProgressIndicator( color: Colors.white, strokeWidth: 3, ), ), // const Text( // " Kaydediliyor", // style: TextStyle( // color: Colors.white, // ), // ) ], ), crossFadeState: kaydediliyor.value ? CrossFadeState.showSecond : CrossFadeState.showFirst, duration: const Duration(milliseconds: 500), ), ), ), ), ], ), ], ), ), ), /** NOT: Sağ Göstergeler */ Sensorlar(kayit: kayit), ], ), ), /** */ AltButonlar(kayit: kayit), ], ), ), ], ), ); } }