import 'package:fikoyt_merkez/core/Extensions/fiko_tarih.dart'; import 'package:fikoyt_merkez/core/widgets/fiko_ui/fiko_button/fiko_button.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; import '../../model/calisma_kayit.dart'; class GirisSecici extends StatelessWidget { const GirisSecici({super.key, required this.kayit}); final Rx? kayit; @override Widget build(BuildContext context) { return Container( child: Column( children: [ Row( mainAxisAlignment: MainAxisAlignment.center, children: [ Obx( () => FikoButton1( text: kayit?.value.giris != null ? kayit!.value.giris!.formatla("dd.MM.yyyy") : "Seçiniz", textSize: 13, textColor: Colors.black, textStrokeColor: Colors.transparent, onPressed: () async { if (kayit?.value.giris != null) { kayit?.value.giris = await kayit!.value.giris!.tarihSec(context); } else { kayit?.value.giris = await DateTime.now().tarihSec(context); } kayit?.refresh(); }, ), ), FikoButton1( text: "16:12:00", textSize: 13, textColor: Colors.black, textStrokeColor: Colors.transparent, onPressed: () {}, ), ], ), SizedBox( height: 5, ), Row( mainAxisAlignment: MainAxisAlignment.center, children: [ FikoButton1( text: "⏳ Giriş Saati", textSize: 10, edgePadding: EdgeInsets.symmetric(horizontal: 10, vertical: 1), textColor: Colors.black, textStrokeColor: Colors.transparent, borderColor: Colors.blue, onPressed: () {}, ), SizedBox( width: 5, ), FikoButton1( text: "⏳ Şimdi", textSize: 10, edgePadding: EdgeInsets.symmetric(horizontal: 10, vertical: 1), textColor: Colors.black, textStrokeColor: Colors.transparent, borderColor: Colors.blue, onPressed: () {}, ), ], ), ], ), ); } }