import 'package:fikoyt_merkez/core/widgets/fiko_ui/fiko_button/fiko_button.dart'; import 'package:flutter/material.dart'; import 'package:flutter_animate/flutter_animate.dart'; import 'package:get/get.dart'; import '../../model/calisma_kayit.dart'; class AltButonlar extends StatelessWidget { const AltButonlar({super.key, required this.kayit}); final Rx? kayit; @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.all(5), child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ Expanded( child: Obx( () => TextButton( onPressed: () { kayit?.value?.servisGecikmesi = !kayit!.value.servisGecikmesi; kayit?.refresh(); }, style: TextButton.styleFrom( alignment: Alignment.center, fixedSize: const Size.fromHeight(20), backgroundColor: Colors.grey.shade50, shape: const BeveledRectangleBorder( borderRadius: BorderRadius.zero, ), ), child: Icon( Icons.bus_alert, size: 16, color: kayit?.value?.servisGecikmesi == true ? Colors.orange : Colors.grey.shade300, ), ), ), ), Expanded( child: Obx( () => TextButton( onPressed: () { kayit?.value?.resmiTatil = !kayit!.value.resmiTatil; kayit?.refresh(); }, style: TextButton.styleFrom( alignment: Alignment.center, fixedSize: const Size.fromHeight(20), backgroundColor: Colors.grey.shade50, shape: const BeveledRectangleBorder(borderRadius: BorderRadius.zero), ), child: Icon( Icons.flag, size: 16, color: kayit?.value?.resmiTatil == true ? Colors.orange : Colors.grey.shade300, ), ), ), ), Expanded( child: Obx( () => TextButton( onPressed: () { kayit?.value?.raporlu = !kayit!.value.raporlu; kayit?.value?.gunlukIzinli = false; kayit?.value?.yillikIzinli = false; kayit?.refresh(); }, style: TextButton.styleFrom( alignment: Alignment.center, fixedSize: const Size.fromHeight(20), backgroundColor: Colors.grey.shade50, shape: const BeveledRectangleBorder(borderRadius: BorderRadius.zero), ), child: Icon( Icons.heart_broken, size: 16, color: kayit?.value?.raporlu == true ? Colors.orange : Colors.grey.shade300, ), ), ), ), Expanded( child: Obx( () => TextButton( onPressed: () { kayit?.value?.gunlukIzinli = !kayit!.value.gunlukIzinli; kayit?.value?.raporlu = false; kayit?.value?.yillikIzinli = false; kayit?.refresh(); }, style: TextButton.styleFrom( alignment: Alignment.center, fixedSize: const Size.fromHeight(20), backgroundColor: Colors.grey.shade50, shape: const BeveledRectangleBorder(borderRadius: BorderRadius.zero), ), child: Icon( Icons.hotel, size: 16, color: kayit?.value?.gunlukIzinli == true ? Colors.orange : Colors.grey.shade300, ), ), ), ), Expanded( child: Obx( () => TextButton( onPressed: () { kayit?.value?.yillikIzinli = !kayit!.value.yillikIzinli; kayit?.value?.raporlu = false; kayit?.value?.gunlukIzinli = false; kayit?.refresh(); }, style: TextButton.styleFrom( alignment: Alignment.center, fixedSize: const Size.fromHeight(20), backgroundColor: Colors.grey.shade50, shape: const BeveledRectangleBorder(borderRadius: BorderRadius.zero), ), child: Icon( Icons.pool, size: 16, color: kayit?.value?.yillikIzinli == true ? Colors.orange : Colors.grey.shade300, ), ), ), ), Expanded( child: Obx( () => TextButton( onPressed: () { kayit?.value?.yolParasiVar = !kayit!.value.yolParasiVar; kayit?.refresh(); }, style: TextButton.styleFrom( alignment: Alignment.center, fixedSize: const Size.fromHeight(20), backgroundColor: Colors.grey.shade50, shape: const BeveledRectangleBorder(borderRadius: BorderRadius.zero), ), child: Icon( Icons.local_gas_station, size: 16, color: kayit?.value?.yolParasiVar == true ? Colors.orange : Colors.grey.shade300, ), ), ), ), Expanded( child: Obx( () => TextButton( onPressed: () { kayit?.value?.yemekParasiVar = !kayit!.value.yemekParasiVar; kayit?.refresh(); }, style: TextButton.styleFrom( alignment: Alignment.center, fixedSize: const Size.fromHeight(20), backgroundColor: Colors.grey.shade50, shape: const BeveledRectangleBorder(borderRadius: BorderRadius.zero), ), child: Icon( Icons.fastfood, size: 16, color: kayit?.value?.yemekParasiVar == true ? Colors.orange : Colors.grey.shade300, ), ), ), ), Expanded( child: TextButton( onPressed: () {}, style: TextButton.styleFrom( alignment: Alignment.center, fixedSize: const Size.fromHeight(20), backgroundColor: Colors.grey.shade50, shape: const BeveledRectangleBorder( borderRadius: BorderRadius.zero, ), ), child: const Icon( Icons.chat_bubble, size: 16, ), ), ), ], ), ); } }